pub struct Writeable<'a, K, V, S> { /* private fields */ }
Expand description

RAII structure used to release the exclusive write access, when dropped.

Implementations

Returns a reference to the value corresponding to the key.

Returns the key-value pair corresponding to the supplied key.

Returns true if the map contains a value for the specified key.

Returns a mutable reference to the value corresponding to the key.

Inserts a key-value pair into the map.

If the map did not have this key present, None is returned.

If the map did have this key present, the value is updated, and the old value is returned. The key is not updated, though; this matters for types that can be == without being identical.

Removes a key from the map, returning the value at the key if the key was previously in the map.

Gets the given key’s corresponding entry in the map for in-place manipulation.

source

pub fn remove_entry(&mut self) -> Option<(K, V)>

Removes a key from the map, returning the stored key and value if the key was previously in the map.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.