pub enum Mutability {
Mutable,
Immutable,
Either,
}
Expand description
This models the mutability of a reference
Variants§
Mutable
Represents a mutable reference
Immutable
Represents an immutable reference
Either
When we don’t need to specify whether the reference is mutable or immutable
Trait Implementations§
source§impl Clone for Mutability
impl Clone for Mutability
source§fn clone(&self) -> Mutability
fn clone(&self) -> Mutability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Mutability
impl Debug for Mutability
source§impl PartialEq<Mutability> for Mutability
impl PartialEq<Mutability> for Mutability
source§fn eq(&self, other: &Mutability) -> bool
fn eq(&self, other: &Mutability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Mutability
impl StructuralEq for Mutability
impl StructuralPartialEq for Mutability
Auto Trait Implementations§
impl RefUnwindSafe for Mutability
impl Send for Mutability
impl Sync for Mutability
impl Unpin for Mutability
impl UnwindSafe for Mutability
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.