Enum static_cow::MutIfOwned
source · Expand description
Either an immutable reference to a borrowing object, or a mutable reference to an owning one.
Returned by StaticCow::mut_if_owned.
Variants§
Const(&'a B)
An immutable reference to a borrowing object.
Mut(&'a mut B::Owned)
A mutable reference to an owning object.
Trait Implementations§
source§impl<'a, B> PartialEq<MutIfOwned<'a, B>> for MutIfOwned<'a, B>where
B: ToOwned + ?Sized + PartialEq,
B::Owned: PartialEq,
impl<'a, B> PartialEq<MutIfOwned<'a, B>> for MutIfOwned<'a, B>where
B: ToOwned + ?Sized + PartialEq,
B::Owned: PartialEq,
source§fn eq(&self, other: &MutIfOwned<'a, B>) -> bool
fn eq(&self, other: &MutIfOwned<'a, B>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.