[][src]Struct cordoba::Reader

pub struct Reader<A> { /* fields omitted */ }

Implementations

impl<A: CDBAccess> Reader<A>[src]

pub fn new(access: A) -> Result<Reader<A>, ReadError>[src]

pub fn iter(&self) -> impl Iterator<Item = Result<(&[u8], &[u8]), ReadError>>[src]

pub fn lookup<'k, 'c: 'k>(
    &'c self,
    key: &'k [u8]
) -> impl Iterator<Item = Result<&'c [u8], ReadError>> + 'k
[src]

pub fn get<'c, 'k>(
    &'c self,
    key: &'k [u8]
) -> Result<Option<&'c [u8]>, ReadError>
[src]

Trait Implementations

impl<A> Debug for Reader<A>[src]

impl<'a, A: CDBAccess> IntoIterator for &'a Reader<A>[src]

type IntoIter = FileIter<'a, A>

Which kind of iterator are we turning this into?

type Item = <FileIter<'a, A> as Iterator>::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<A> RefUnwindSafe for Reader<A> where
    A: RefUnwindSafe

impl<A> Send for Reader<A> where
    A: Send

impl<A> Sync for Reader<A> where
    A: Sync

impl<A> Unpin for Reader<A> where
    A: Unpin

impl<A> UnwindSafe for Reader<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.