Struct im::hashmap::HashMapLens
[−]
[src]
pub struct HashMapLens<K, V, S> { /* fields omitted */ }
Trait Implementations
impl<K, V, S> Clone for HashMapLens<K, V, S>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K, V, S> PartialLens for HashMapLens<K, V, S> where
K: Hash + Eq,
S: SharedHasher,
[src]
K: Hash + Eq,
S: SharedHasher,
type From = HashMap<K, V, S>
type To = V
fn try_get(&self, s: &Self::From) -> Option<Arc<Self::To>>
[src]
Get the focus of the lens, if available.
fn try_put<Convert>(
&self,
cv: Option<Convert>,
s: &Self::From
) -> Option<Self::From> where
Convert: Shared<Self::To>,
[src]
&self,
cv: Option<Convert>,
s: &Self::From
) -> Option<Self::From> where
Convert: Shared<Self::To>,
Put a value into the lens, returning the updated From
value if the operation succeeded. Read more
fn try_chain<L, Next>(
&self,
next: &L
) -> Compose<Self::From, Self::To, Next, Self, L> where
L: PartialLens<From = Self::To, To = Next>,
[src]
&self,
next: &L
) -> Compose<Self::From, Self::To, Next, Self, L> where
L: PartialLens<From = Self::To, To = Next>,
Compose this lens with a lens from To
to a new type Next
, yielding a lens from From
to Next
. Read more