[][src]Struct cordoba::CDBReader

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

Methods

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

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

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

pub fn lookup<'a>(
    &'a self,
    key: &'a [u8]
) -> impl Iterator<Item = Result<&[u8], CDBReadError>>
[src]

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

Trait Implementations

impl<'a, A: CDBAccess> IntoIterator for &'a CDBReader<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> Send for CDBReader<A> where
    A: Send

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.