Struct SORTING_STRATEGIES

Source
pub struct SORTING_STRATEGIES { /* private fields */ }

Methods from Deref<Target = Map<&'static str, OrdFn>>§

Source

pub fn len(&self) -> usize

Returns the number of entries in the Map.

Source

pub fn is_empty(&self) -> bool

Returns true if the Map is empty.

Source

pub fn contains_key<T>(&self, key: &T) -> bool
where T: Eq + PhfHash + ?Sized, K: PhfBorrow<T>,

Determines if key is in the Map.

Source

pub fn get<T>(&self, key: &T) -> Option<&V>
where T: Eq + PhfHash + ?Sized, K: PhfBorrow<T>,

Returns a reference to the value that key maps to.

Source

pub fn get_key<T>(&self, key: &T) -> Option<&K>
where T: Eq + PhfHash + ?Sized, K: PhfBorrow<T>,

Returns a reference to the map’s internal static instance of the given key.

This can be useful for interning schemes.

Source

pub fn get_entry<T>(&self, key: &T) -> Option<(&K, &V)>
where T: Eq + PhfHash + ?Sized, K: PhfBorrow<T>,

Like get, but returns both the key and the value.

Source

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.

Source

pub fn keys(&self) -> Keys<'_, K, V>

Returns an iterator over the keys in the map.

Keys are returned in an arbitrary but fixed order.

Source

pub fn values(&self) -> Values<'_, K, V>

Returns an iterator over the values in the map.

Values are returned in an arbitrary but fixed order.

Trait Implementations§

Source§

impl Deref for SORTING_STRATEGIES

Source§

type Target = Map<&'static str, fn(&PathBuf) -> Key>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Map<&'static str, OrdFn>

Dereferences the value.
Source§

impl LazyStatic for SORTING_STRATEGIES

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.