[−][src]Struct gluon_base::fixed::FixedMap
Implementations
impl<K: Eq + Hash, V> FixedMap<K, V>
[src]
pub fn new() -> FixedMap<K, V>
[src]
pub fn clear(&mut self)
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
impl<K: Eq + Hash, V> FixedMap<K, V>
[src]
pub fn insert(&mut self, key: K, value: V) -> Option<V>
[src]
pub fn try_insert(&self, key: K, value: V) -> Result<(), (K, V)>
[src]
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Eq + Hash,
[src]
K: Borrow<Q>,
Q: Eq + Hash,
pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V> where
K: Borrow<Q>,
Q: Eq + Hash,
[src]
K: Borrow<Q>,
Q: Eq + Hash,
pub fn remove<Q>(&mut self, key: &Q) where
K: Borrow<Q>,
Q: Eq + Hash,
[src]
K: Borrow<Q>,
Q: Eq + Hash,
Trait Implementations
impl<K: Eq + Hash + Debug, V: Debug> Debug for FixedMap<K, V>
[src]
impl<K: Eq + Hash, V> Default for FixedMap<K, V>
[src]
impl<'a, Q: ?Sized, K, V> Index<&'a Q> for FixedMap<K, V> where
K: Eq + Hash + Borrow<Q>,
Q: Eq + Hash,
[src]
K: Eq + Hash + Borrow<Q>,
Q: Eq + Hash,
Auto Trait Implementations
impl<K, V> !RefUnwindSafe for FixedMap<K, V>
impl<K, V> Send for FixedMap<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> !Sync for FixedMap<K, V>
impl<K, V> Unpin for FixedMap<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for FixedMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?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>,