[−][src]Struct sequence_map::Map
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,