IsMut

Enum IsMut 

Source
pub enum IsMut<'a, T>
where T: ?Sized + ToOwned,
{ Owned(T::Owned), MutBorrowed(&'a mut T), }
Expand description

Represents an owned or a mutably borrowed data.

Variants§

§

Owned(T::Owned)

Owned data.

§

MutBorrowed(&'a mut T)

Mutably borrowed data.

Trait Implementations§

Source§

impl<T, U, O> Add<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefAdd<Owned<U>, Output = O> + for<'a> RefAdd<&'a U::Is, Output = O> + for<'a> RefAdd<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the + operator.
Source§

fn add(self, rhs: U) -> Self::Output

Performs the + operation. Read more
Source§

impl<T, U, O> Add<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutAdd<Owned<U>, Output = O> + for<'a> RefMutAdd<&'a U::Is, Output = O> + for<'a> RefMutAdd<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the + operator.
Source§

fn add(self, rhs: U) -> Self::Output

Performs the + operation. Read more
Source§

impl<T, U, O> Add<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutAdd<Owned<U>, Output = O> + for<'a> RefMutAdd<&'a U::Is, Output = O> + for<'a> RefMutAdd<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Add<Owned<U>, Output = O> + for<'a> Add<&'a U::Is, Output = O> + for<'a> Add<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the + operator.
Source§

fn add(self, rhs: U) -> Self::Output

Performs the + operation. Read more
Source§

impl<T, U> AddAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + AddAssign<Owned<U>> + for<'a> AddAssign<&'a U::Is> + for<'a> AddAssign<&'a mut U::Is>, U: AsIs, T::Owned: AddAssign<Owned<U>> + for<'a> AddAssign<&'a U::Is> + for<'a> AddAssign<&'a mut U::Is>,

Source§

fn add_assign(&mut self, rhs: U)

Performs the += operation. Read more
Source§

impl<T> AsIs for IsMut<'_, T>
where T: ?Sized + BorrowAsIs<Is = T> + ToOwned,

Source§

fn as_is<'a>(self) -> Is<'a, T>
where Self: 'a,

Converts self into an Is<'a, Self::Is>.
Source§

fn into_is<'a, B>(self) -> Is<'a, B>
where Self: 'a, Self::Is: BorrowMut<B>, B: ?Sized + ToOwned<Owned = Owned<Self>>,

Converts self into an Is<'a, B>.
Source§

fn into_is_cow<'a, B>(self) -> IsCow<'a, B>
where Self: 'a, Self::Is: Borrow<B>, B: ?Sized + ToOwned<Owned = Owned<Self>>,

Converts self into an IsCow<'a, B>.
Source§

fn try_into_is_mut<'a, B>(self) -> Result<IsMut<'a, B>, Is<'a, Self::Is>>
where Self: 'a, Self::Is: BorrowMut<B>, B: ?Sized + ToOwned<Owned = Owned<Self>>,

Converts self into an IsMut<'a, B> without cloning if possible. Read more
Source§

fn try_into_owned<'a>(self) -> Result<Owned<Self>, Is<'a, Self::Is>>
where Self: 'a,

Converts self into an owned data without cloning if possible. Read more
Source§

fn into_cow<'a, B>(self) -> Cow<'a, B>
where Self: 'a, Self::Is: Borrow<B>, B: ?Sized + ToOwned<Owned = Owned<Self>>,

Converts self into a Cow<'a, B>. Only available if the alloc feature is enabled.
Source§

impl<T, U, O> BitAnd<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefBitAnd<Owned<U>, Output = O> + for<'a> RefBitAnd<&'a U::Is, Output = O> + for<'a> RefBitAnd<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: U) -> Self::Output

Performs the & operation. Read more
Source§

impl<T, U, O> BitAnd<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutBitAnd<Owned<U>, Output = O> + for<'a> RefMutBitAnd<&'a U::Is, Output = O> + for<'a> RefMutBitAnd<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: U) -> Self::Output

Performs the & operation. Read more
Source§

impl<T, U, O> BitAnd<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutBitAnd<Owned<U>, Output = O> + for<'a> RefMutBitAnd<&'a U::Is, Output = O> + for<'a> RefMutBitAnd<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: BitAnd<Owned<U>, Output = O> + for<'a> BitAnd<&'a U::Is, Output = O> + for<'a> BitAnd<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: U) -> Self::Output

Performs the & operation. Read more
Source§

impl<T, U> BitAndAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + BitAndAssign<Owned<U>> + for<'a> BitAndAssign<&'a U::Is> + for<'a> BitAndAssign<&'a mut U::Is>, U: AsIs, T::Owned: BitAndAssign<Owned<U>> + for<'a> BitAndAssign<&'a U::Is> + for<'a> BitAndAssign<&'a mut U::Is>,

Source§

fn bitand_assign(&mut self, rhs: U)

Performs the &= operation. Read more
Source§

impl<T, U, O> BitOr<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefBitOr<Owned<U>, Output = O> + for<'a> RefBitOr<&'a U::Is, Output = O> + for<'a> RefBitOr<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: U) -> Self::Output

Performs the | operation. Read more
Source§

impl<T, U, O> BitOr<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutBitOr<Owned<U>, Output = O> + for<'a> RefMutBitOr<&'a U::Is, Output = O> + for<'a> RefMutBitOr<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: U) -> Self::Output

Performs the | operation. Read more
Source§

impl<T, U, O> BitOr<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutBitOr<Owned<U>, Output = O> + for<'a> RefMutBitOr<&'a U::Is, Output = O> + for<'a> RefMutBitOr<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: BitOr<Owned<U>, Output = O> + for<'a> BitOr<&'a U::Is, Output = O> + for<'a> BitOr<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: U) -> Self::Output

Performs the | operation. Read more
Source§

impl<T, U> BitOrAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + BitOrAssign<Owned<U>> + for<'a> BitOrAssign<&'a U::Is> + for<'a> BitOrAssign<&'a mut U::Is>, U: AsIs, T::Owned: BitOrAssign<Owned<U>> + for<'a> BitOrAssign<&'a U::Is> + for<'a> BitOrAssign<&'a mut U::Is>,

Source§

fn bitor_assign(&mut self, rhs: U)

Performs the |= operation. Read more
Source§

impl<T, U, O> BitXor<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefBitXor<Owned<U>, Output = O> + for<'a> RefBitXor<&'a U::Is, Output = O> + for<'a> RefBitXor<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: U) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T, U, O> BitXor<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutBitXor<Owned<U>, Output = O> + for<'a> RefMutBitXor<&'a U::Is, Output = O> + for<'a> RefMutBitXor<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: U) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T, U, O> BitXor<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutBitXor<Owned<U>, Output = O> + for<'a> RefMutBitXor<&'a U::Is, Output = O> + for<'a> RefMutBitXor<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: BitXor<Owned<U>, Output = O> + for<'a> BitXor<&'a U::Is, Output = O> + for<'a> BitXor<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: U) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T, U> BitXorAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + BitXorAssign<Owned<U>> + for<'a> BitXorAssign<&'a U::Is> + for<'a> BitXorAssign<&'a mut U::Is>, U: AsIs, T::Owned: BitXorAssign<Owned<U>> + for<'a> BitXorAssign<&'a U::Is> + for<'a> BitXorAssign<&'a mut U::Is>,

Source§

fn bitxor_assign(&mut self, rhs: U)

Performs the ^= operation. Read more
Source§

impl<T> Borrow<T> for &IsMut<'_, T>
where T: ?Sized + ToOwned,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<T> for &mut IsMut<'_, T>
where T: ?Sized + ToOwned,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<T> for IsMut<'_, T>
where T: ?Sized + ToOwned,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowAsIs for IsMut<'_, T>
where T: ?Sized + BorrowAsIs<Is = T> + ToOwned,

Source§

type Is = T

The primary borrow target.
Source§

fn borrow_or_clone<B>(&self) -> IsCow<'_, B>
where T: Borrow<B>, B: ?Sized + ToOwned<Owned = T::Owned>,

Immutably borrows from self by default, but can be overridden to clone self if appropriate.
Source§

fn borrow_as_is(&self) -> &Self::Is

Immutably borrows from self as Is.
Source§

impl<T> BorrowMut<T> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for IsMut<'_, T>
where T: ?Sized + ToOwnedMut,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<'a, T> Debug for IsMut<'a, T>
where T: ?Sized + ToOwned + Debug, T::Owned: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Default for IsMut<'_, T>
where T: ?Sized + ToOwned, T::Owned: Default,

Source§

fn default() -> Self

Creates an owned IsMut<'_, T> with the default value for T::Owned.

Source§

impl<T> Deref for IsMut<'_, T>
where T: ?Sized + ToOwned,

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
Source§

impl<T> DerefMut for IsMut<'_, T>
where T: ?Sized + ToOwnedMut,

Source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
Source§

impl<T, U, O> Div<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefDiv<Owned<U>, Output = O> + for<'a> RefDiv<&'a U::Is, Output = O> + for<'a> RefDiv<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the / operator.
Source§

fn div(self, rhs: U) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, U, O> Div<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutDiv<Owned<U>, Output = O> + for<'a> RefMutDiv<&'a U::Is, Output = O> + for<'a> RefMutDiv<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the / operator.
Source§

fn div(self, rhs: U) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, U, O> Div<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutDiv<Owned<U>, Output = O> + for<'a> RefMutDiv<&'a U::Is, Output = O> + for<'a> RefMutDiv<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Div<Owned<U>, Output = O> + for<'a> Div<&'a U::Is, Output = O> + for<'a> Div<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the / operator.
Source§

fn div(self, rhs: U) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, U> DivAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + DivAssign<Owned<U>> + for<'a> DivAssign<&'a U::Is> + for<'a> DivAssign<&'a mut U::Is>, U: AsIs, T::Owned: DivAssign<Owned<U>> + for<'a> DivAssign<&'a U::Is> + for<'a> DivAssign<&'a mut U::Is>,

Source§

fn div_assign(&mut self, rhs: U)

Performs the /= operation. Read more
Source§

impl<T> Hash for IsMut<'_, T>
where T: ?Sized + ToOwned + Hash,

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T, U, O> Mul<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefMul<Owned<U>, Output = O> + for<'a> RefMul<&'a U::Is, Output = O> + for<'a> RefMul<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: U) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, O> Mul<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutMul<Owned<U>, Output = O> + for<'a> RefMutMul<&'a U::Is, Output = O> + for<'a> RefMutMul<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: U) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U, O> Mul<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutMul<Owned<U>, Output = O> + for<'a> RefMutMul<&'a U::Is, Output = O> + for<'a> RefMutMul<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Mul<Owned<U>, Output = O> + for<'a> Mul<&'a U::Is, Output = O> + for<'a> Mul<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: U) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U> MulAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + MulAssign<Owned<U>> + for<'a> MulAssign<&'a U::Is> + for<'a> MulAssign<&'a mut U::Is>, U: AsIs, T::Owned: MulAssign<Owned<U>> + for<'a> MulAssign<&'a U::Is> + for<'a> MulAssign<&'a mut U::Is>,

Source§

fn mul_assign(&mut self, rhs: U)

Performs the *= operation. Read more
Source§

impl<T> Neg for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefNeg,

Source§

type Output = <T as RefNeg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T> Neg for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutNeg,

Source§

type Output = <T as RefMutNeg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T> Neg for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutNeg, T::Owned: Neg<Output = T::Output>,

Source§

type Output = <T as RefMutNeg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T> Not for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefNot,

Source§

type Output = <T as RefNot>::Output

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T> Not for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutNot,

Source§

type Output = <T as RefMutNot>::Output

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T> Not for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutNot, T::Owned: Not<Output = T::Output>,

Source§

type Output = <T as RefMutNot>::Output

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T> Ord for IsMut<'_, T>
where T: ?Sized + ToOwned + Ord,

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T, U> PartialEq<Is<'_, U>> for IsMut<'_, T>
where T: ?Sized + ToOwned + PartialEq<U>, U: ?Sized + ToOwned,

Source§

fn eq(&self, other: &Is<'_, U>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, U> PartialEq<IsCow<'_, U>> for IsMut<'_, T>
where T: ?Sized + ToOwned + PartialEq<U>, U: ?Sized + ToOwned,

Source§

fn eq(&self, other: &IsCow<'_, U>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, U> PartialEq<IsMut<'_, U>> for Is<'_, T>
where T: ?Sized + ToOwned + PartialEq<U>, U: ?Sized + ToOwned,

Source§

fn eq(&self, other: &IsMut<'_, U>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, U> PartialEq<IsMut<'_, U>> for IsCow<'_, T>
where T: ?Sized + ToOwned + PartialEq<U>, U: ?Sized + ToOwned,

Source§

fn eq(&self, other: &IsMut<'_, U>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, U> PartialEq<IsMut<'_, U>> for IsMut<'_, T>
where T: ?Sized + ToOwned + PartialEq<U>, U: ?Sized + ToOwned,

Source§

fn eq(&self, other: &IsMut<'_, U>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, U> PartialOrd<Is<'_, U>> for IsMut<'_, T>
where T: ?Sized + ToOwned + PartialOrd<U>, U: ?Sized + ToOwned,

Source§

fn partial_cmp(&self, other: &Is<'_, U>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T, U> PartialOrd<IsCow<'_, U>> for IsMut<'_, T>
where T: ?Sized + ToOwned + PartialOrd<U>, U: ?Sized + ToOwned,

Source§

fn partial_cmp(&self, other: &IsCow<'_, U>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T, U> PartialOrd<IsMut<'_, U>> for Is<'_, T>
where T: ?Sized + ToOwned + PartialOrd<U>, U: ?Sized + ToOwned,

Source§

fn partial_cmp(&self, other: &IsMut<'_, U>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T, U> PartialOrd<IsMut<'_, U>> for IsCow<'_, T>
where T: ?Sized + ToOwned + PartialOrd<U>, U: ?Sized + ToOwned,

Source§

fn partial_cmp(&self, other: &IsMut<'_, U>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T, U> PartialOrd<IsMut<'_, U>> for IsMut<'_, T>
where T: ?Sized + ToOwned + PartialOrd<U>, U: ?Sized + ToOwned,

Source§

fn partial_cmp(&self, other: &IsMut<'_, U>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T, U, O> Rem<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefRem<Owned<U>, Output = O> + for<'a> RefRem<&'a U::Is, Output = O> + for<'a> RefRem<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: U) -> Self::Output

Performs the % operation. Read more
Source§

impl<T, U, O> Rem<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutRem<Owned<U>, Output = O> + for<'a> RefMutRem<&'a U::Is, Output = O> + for<'a> RefMutRem<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: U) -> Self::Output

Performs the % operation. Read more
Source§

impl<T, U, O> Rem<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutRem<Owned<U>, Output = O> + for<'a> RefMutRem<&'a U::Is, Output = O> + for<'a> RefMutRem<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Rem<Owned<U>, Output = O> + for<'a> Rem<&'a U::Is, Output = O> + for<'a> Rem<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: U) -> Self::Output

Performs the % operation. Read more
Source§

impl<T, U> RemAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RemAssign<Owned<U>> + for<'a> RemAssign<&'a U::Is> + for<'a> RemAssign<&'a mut U::Is>, U: AsIs, T::Owned: RemAssign<Owned<U>> + for<'a> RemAssign<&'a U::Is> + for<'a> RemAssign<&'a mut U::Is>,

Source§

fn rem_assign(&mut self, rhs: U)

Performs the %= operation. Read more
Source§

impl<T, U, O> Shl<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefShl<Owned<U>, Output = O> + for<'a> RefShl<&'a U::Is, Output = O> + for<'a> RefShl<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: U) -> Self::Output

Performs the << operation. Read more
Source§

impl<T, U, O> Shl<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutShl<Owned<U>, Output = O> + for<'a> RefMutShl<&'a U::Is, Output = O> + for<'a> RefMutShl<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: U) -> Self::Output

Performs the << operation. Read more
Source§

impl<T, U, O> Shl<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutShl<Owned<U>, Output = O> + for<'a> RefMutShl<&'a U::Is, Output = O> + for<'a> RefMutShl<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Shl<Owned<U>, Output = O> + for<'a> Shl<&'a U::Is, Output = O> + for<'a> Shl<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: U) -> Self::Output

Performs the << operation. Read more
Source§

impl<T, U> ShlAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + ShlAssign<Owned<U>> + for<'a> ShlAssign<&'a U::Is> + for<'a> ShlAssign<&'a mut U::Is>, U: AsIs, T::Owned: ShlAssign<Owned<U>> + for<'a> ShlAssign<&'a U::Is> + for<'a> ShlAssign<&'a mut U::Is>,

Source§

fn shl_assign(&mut self, rhs: U)

Performs the <<= operation. Read more
Source§

impl<T, U, O> Shr<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefShr<Owned<U>, Output = O> + for<'a> RefShr<&'a U::Is, Output = O> + for<'a> RefShr<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: U) -> Self::Output

Performs the >> operation. Read more
Source§

impl<T, U, O> Shr<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutShr<Owned<U>, Output = O> + for<'a> RefMutShr<&'a U::Is, Output = O> + for<'a> RefMutShr<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: U) -> Self::Output

Performs the >> operation. Read more
Source§

impl<T, U, O> Shr<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutShr<Owned<U>, Output = O> + for<'a> RefMutShr<&'a U::Is, Output = O> + for<'a> RefMutShr<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Shr<Owned<U>, Output = O> + for<'a> Shr<&'a U::Is, Output = O> + for<'a> Shr<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: U) -> Self::Output

Performs the >> operation. Read more
Source§

impl<T, U> ShrAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + ShrAssign<Owned<U>> + for<'a> ShrAssign<&'a U::Is> + for<'a> ShrAssign<&'a mut U::Is>, U: AsIs, T::Owned: ShrAssign<Owned<U>> + for<'a> ShrAssign<&'a U::Is> + for<'a> ShrAssign<&'a mut U::Is>,

Source§

fn shr_assign(&mut self, rhs: U)

Performs the >>= operation. Read more
Source§

impl<T, U, O> Sub<U> for &IsMut<'_, T>
where T: ?Sized + ToOwned + RefSub<Owned<U>, Output = O> + for<'a> RefSub<&'a U::Is, Output = O> + for<'a> RefSub<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: U) -> Self::Output

Performs the - operation. Read more
Source§

impl<T, U, O> Sub<U> for &mut IsMut<'_, T>
where T: ?Sized + ToOwnedMut + RefMutSub<Owned<U>, Output = O> + for<'a> RefMutSub<&'a U::Is, Output = O> + for<'a> RefMutSub<&'a mut U::Is, Output = O>, U: AsIs,

Source§

type Output = O

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: U) -> Self::Output

Performs the - operation. Read more
Source§

impl<T, U, O> Sub<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + RefMutSub<Owned<U>, Output = O> + for<'a> RefMutSub<&'a U::Is, Output = O> + for<'a> RefMutSub<&'a mut U::Is, Output = O>, U: AsIs, T::Owned: Sub<Owned<U>, Output = O> + for<'a> Sub<&'a U::Is, Output = O> + for<'a> Sub<&'a mut U::Is, Output = O>,

Source§

type Output = O

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: U) -> Self::Output

Performs the - operation. Read more
Source§

impl<T, U> SubAssign<U> for IsMut<'_, T>
where T: ?Sized + ToOwned + SubAssign<Owned<U>> + for<'a> SubAssign<&'a U::Is> + for<'a> SubAssign<&'a mut U::Is>, U: AsIs, T::Owned: SubAssign<Owned<U>> + for<'a> SubAssign<&'a U::Is> + for<'a> SubAssign<&'a mut U::Is>,

Source§

fn sub_assign(&mut self, rhs: U)

Performs the -= operation. Read more
Source§

impl<T> Eq for IsMut<'_, T>
where T: ?Sized + ToOwned + Eq,

Auto Trait Implementations§

§

impl<'a, T> Freeze for IsMut<'a, T>
where <T as ToOwned>::Owned: Freeze, T: ?Sized,

§

impl<'a, T> RefUnwindSafe for IsMut<'a, T>

§

impl<'a, T> Send for IsMut<'a, T>
where <T as ToOwned>::Owned: Send, T: Send + ?Sized,

§

impl<'a, T> Sync for IsMut<'a, T>
where <T as ToOwned>::Owned: Sync, T: Sync + ?Sized,

§

impl<'a, T> Unpin for IsMut<'a, T>
where <T as ToOwned>::Owned: Unpin, T: ?Sized,

§

impl<'a, T> !UnwindSafe for IsMut<'a, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsIsMut for T
where T: AsIs + BorrowMutAsIs,

Source§

fn as_is_mut<'a>(self) -> IsMut<'a, Self::Is>
where Self: 'a,

Converts self into an IsMut<'a, Self::Is>. Read more
Source§

fn into_is_mut<'a, B>(self) -> IsMut<'a, B>
where Self: 'a, Self::Is: BorrowMut<B>, B: ?Sized + ToOwned<Owned = Owned<Self>>,

Converts self into an IsMut<'a, B>.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMutAsIs for T
where T: BorrowAsIs + BorrowMut<<T as BorrowAsIs>::Is> + ?Sized,

Source§

fn borrow_mut_as_is(&mut self) -> &mut Self::Is

Mutably borrows from self as Is.
Source§

fn borrow_mut_or_clone<B>(&mut self) -> IsMut<'_, B>
where Self::Is: BorrowMut<B>, B: ?Sized + ToOwned<Owned = Owned<Self>>,

Mutably borrows from self by default, but clones self if self.borrow_or_clone() is overridden to clone self.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, Rhs, O> RefAdd<Rhs> for T
where &'a T: for<'a> Add<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying add operation.
Source§

fn ref_add(&self, rhs: Rhs) -> O

Performs add operation.
Source§

impl<T, Rhs, O> RefBitAnd<Rhs> for T
where &'a T: for<'a> BitAnd<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying bitand operation.
Source§

fn ref_bitand(&self, rhs: Rhs) -> O

Performs bitand operation.
Source§

impl<T, Rhs, O> RefBitOr<Rhs> for T
where &'a T: for<'a> BitOr<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying bitor operation.
Source§

fn ref_bitor(&self, rhs: Rhs) -> O

Performs bitor operation.
Source§

impl<T, Rhs, O> RefBitXor<Rhs> for T
where &'a T: for<'a> BitXor<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying bitxor operation.
Source§

fn ref_bitxor(&self, rhs: Rhs) -> O

Performs bitxor operation.
Source§

impl<T, Rhs, O> RefDiv<Rhs> for T
where &'a T: for<'a> Div<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying div operation.
Source§

fn ref_div(&self, rhs: Rhs) -> O

Performs div operation.
Source§

impl<T, Rhs, O> RefMul<Rhs> for T
where &'a T: for<'a> Mul<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying mul operation.
Source§

fn ref_mul(&self, rhs: Rhs) -> O

Performs mul operation.
Source§

impl<T, Rhs, O> RefMutAdd<Rhs> for T
where &'a mut T: for<'a> Add<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying add operation.
Source§

fn ref_mut_add(&mut self, rhs: Rhs) -> O

Performs add operation.
Source§

impl<T, Rhs, O> RefMutBitAnd<Rhs> for T
where &'a mut T: for<'a> BitAnd<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying bitand operation.
Source§

fn ref_mut_bitand(&mut self, rhs: Rhs) -> O

Performs bitand operation.
Source§

impl<T, Rhs, O> RefMutBitOr<Rhs> for T
where &'a mut T: for<'a> BitOr<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying bitor operation.
Source§

fn ref_mut_bitor(&mut self, rhs: Rhs) -> O

Performs bitor operation.
Source§

impl<T, Rhs, O> RefMutBitXor<Rhs> for T
where &'a mut T: for<'a> BitXor<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying bitxor operation.
Source§

fn ref_mut_bitxor(&mut self, rhs: Rhs) -> O

Performs bitxor operation.
Source§

impl<T, Rhs, O> RefMutDiv<Rhs> for T
where &'a mut T: for<'a> Div<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying div operation.
Source§

fn ref_mut_div(&mut self, rhs: Rhs) -> O

Performs div operation.
Source§

impl<T, Rhs, O> RefMutMul<Rhs> for T
where &'a mut T: for<'a> Mul<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying mul operation.
Source§

fn ref_mut_mul(&mut self, rhs: Rhs) -> O

Performs mul operation.
Source§

impl<T, O> RefMutNeg for T
where &'a mut T: for<'a> Neg<Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying neg operation.
Source§

fn ref_mut_neg(&mut self) -> O

Performs neg operation.
Source§

impl<T, O> RefMutNot for T
where &'a mut T: for<'a> Not<Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying not operation.
Source§

fn ref_mut_not(&mut self) -> O

Performs not operation.
Source§

impl<T, Rhs, O> RefMutRem<Rhs> for T
where &'a mut T: for<'a> Rem<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying rem operation.
Source§

fn ref_mut_rem(&mut self, rhs: Rhs) -> O

Performs rem operation.
Source§

impl<T, Rhs, O> RefMutShl<Rhs> for T
where &'a mut T: for<'a> Shl<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying shl operation.
Source§

fn ref_mut_shl(&mut self, rhs: Rhs) -> O

Performs shl operation.
Source§

impl<T, Rhs, O> RefMutShr<Rhs> for T
where &'a mut T: for<'a> Shr<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying shr operation.
Source§

fn ref_mut_shr(&mut self, rhs: Rhs) -> O

Performs shr operation.
Source§

impl<T, Rhs, O> RefMutSub<Rhs> for T
where &'a mut T: for<'a> Sub<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying sub operation.
Source§

fn ref_mut_sub(&mut self, rhs: Rhs) -> O

Performs sub operation.
Source§

impl<T, O> RefNeg for T
where &'a T: for<'a> Neg<Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying neg operation.
Source§

fn ref_neg(&self) -> O

Performs neg operation.
Source§

impl<T, O> RefNot for T
where &'a T: for<'a> Not<Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying not operation.
Source§

fn ref_not(&self) -> O

Performs not operation.
Source§

impl<T, Rhs, O> RefRem<Rhs> for T
where &'a T: for<'a> Rem<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying rem operation.
Source§

fn ref_rem(&self, rhs: Rhs) -> O

Performs rem operation.
Source§

impl<T, Rhs, O> RefShl<Rhs> for T
where &'a T: for<'a> Shl<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying shl operation.
Source§

fn ref_shl(&self, rhs: Rhs) -> O

Performs shl operation.
Source§

impl<T, Rhs, O> RefShr<Rhs> for T
where &'a T: for<'a> Shr<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying shr operation.
Source§

fn ref_shr(&self, rhs: Rhs) -> O

Performs shr operation.
Source§

impl<T, Rhs, O> RefSub<Rhs> for T
where &'a T: for<'a> Sub<Rhs, Output = O>, T: ?Sized,

Source§

type Output = O

The resulting type after applying sub operation.
Source§

fn ref_sub(&self, rhs: Rhs) -> O

Performs sub operation.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.