pub struct SORTING_STRATEGIES { /* private fields */ }
Methods from Deref<Target = Map<&'static str, OrdFn>>§
Sourcepub fn contains_key<T>(&self, key: &T) -> bool
pub fn contains_key<T>(&self, key: &T) -> bool
Determines if key
is in the Map
.
Sourcepub fn get_key<T>(&self, key: &T) -> Option<&K>
pub fn get_key<T>(&self, key: &T) -> Option<&K>
Returns a reference to the map’s internal static instance of the given key.
This can be useful for interning schemes.
Sourcepub fn get_entry<T>(&self, key: &T) -> Option<(&K, &V)>
pub fn get_entry<T>(&self, key: &T) -> Option<(&K, &V)>
Like get
, but returns both the key and the value.
Sourcepub fn entries(&self) -> Entries<'_, K, V>
pub fn entries(&self) -> Entries<'_, K, V>
Returns an iterator over the key/value pairs in the map.
Entries are returned in an arbitrary but fixed order.
Trait Implementations§
Source§impl Deref for SORTING_STRATEGIES
impl Deref for SORTING_STRATEGIES
impl LazyStatic for SORTING_STRATEGIES
Auto Trait Implementations§
impl Freeze for SORTING_STRATEGIES
impl RefUnwindSafe for SORTING_STRATEGIES
impl Send for SORTING_STRATEGIES
impl Sync for SORTING_STRATEGIES
impl Unpin for SORTING_STRATEGIES
impl UnwindSafe for SORTING_STRATEGIES
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