pub struct MapView<'a> { /* private fields */ }Implementations§
Source§impl<'a> MapView<'a>
impl<'a> MapView<'a>
pub fn new(words: &'a [u32]) -> Option<Self>
pub fn detect_len(words: &'a [u32]) -> Option<usize>
pub fn detect(words: &'a [u32]) -> Option<&'a [u32]>
pub fn len(self) -> usize
pub fn is_empty(self) -> bool
pub fn pair(self, index: usize) -> Option<PairView<'a>>
pub fn expect_pair(self, index: usize) -> PairView<'a>
pub fn iter(self) -> MapIter<'a> ⓘ
pub fn find_bytes(self, key: &[u8]) -> Option<PairView<'a>>
pub fn find_str(self, key: &str) -> Option<PairView<'a>>
pub fn find_scalar<K: MapKey + Scalar + PartialEq>( self, key: K, ) -> Option<PairView<'a>>
Trait Implementations§
impl<'a> Copy for MapView<'a>
Auto Trait Implementations§
impl<'a> Freeze for MapView<'a>
impl<'a> RefUnwindSafe for MapView<'a>
impl<'a> Send for MapView<'a>
impl<'a> Sync for MapView<'a>
impl<'a> Unpin for MapView<'a>
impl<'a> UnsafeUnpin for MapView<'a>
impl<'a> UnwindSafe for MapView<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more