[][src]Struct sequence_map::Map

pub struct Map<'a> { /* fields omitted */ }

A read-only Map, backed by a linear buffer. The contents of that buffer are expected to have been generated with Builder.

Implementations

impl<'a> Map<'a>[src]

pub fn new(rep: &'a [u8]) -> Map<'a>[src]

Creates a new Map, with a representation based on the passed in slice rep. The contents of rep are opaque.

pub fn get_cstr(&'a self, key: u64) -> Option<&'a CStr>[src]

Looks up key, returning the found value in the form of a C string. (Because it's possible).

pub fn get(&'a self, key: u64) -> Option<&'a str>[src]

Looks up key in the map, returning the found string if possible.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Map<'a>

impl<'a> Send for Map<'a>

impl<'a> Sync for Map<'a>

impl<'a> Unpin for Map<'a>

impl<'a> UnwindSafe for Map<'a>

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.