Enum sherwood::Location [-] [+] [src]

pub enum Location<'a> {
    Key(&'a [u8]),
    Offset(u64),
    SeqNum(u64),
}

Specifies how to search for document

Variants

Key

Find document by key

Offset

Find document by raw data offset

SeqNum

Find document by document sequence number

Methods

impl<'a> Location<'a>

fn with_key<'k, K>(key: &'k K) -> Location<'k> where K: AsRef<[u8]>