Enum as_is::Is

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

Represents an owned, immutably borrowed, or mutably borrowed data.

Variants§

§

Owned(T::Owned)

Owned data.

§

Borrowed(&'a T)

Immutably borrowed data.

§

MutBorrowed(&'a mut T)

Mutably borrowed data.

Trait Implementations§

source§

impl<T, U, O> Add<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefAdd<Owned<U>, Output = O> + for<'a> RefAdd<&'a U::Is, Output = O> + for<'a> RefAdd<&'a mut U::Is, Output = O> + RefMutAdd<Owned<U>, Output = O> + for<'a> RefMutAdd<&'a U::Is, Output = O> + for<'a> RefMutAdd<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> AsIs for Is<'_, 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: ToOwned<Owned = Owned<Self>> + ?Sized,

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: ToOwned<Owned = Owned<Self>> + ?Sized,

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: ToOwned<Owned = Owned<Self>> + ?Sized,

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: ToOwned<Owned = Owned<Self>> + ?Sized,

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

impl<T, U, O> BitAnd<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefBitAnd<Owned<U>, Output = O> + for<'a> RefBitAnd<&'a U::Is, Output = O> + for<'a> RefBitAnd<&'a mut U::Is, Output = O> + RefMutBitAnd<Owned<U>, Output = O> + for<'a> RefMutBitAnd<&'a U::Is, Output = O> + for<'a> RefMutBitAnd<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> BitOr<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefBitOr<Owned<U>, Output = O> + for<'a> RefBitOr<&'a U::Is, Output = O> + for<'a> RefBitOr<&'a mut U::Is, Output = O> + RefMutBitOr<Owned<U>, Output = O> + for<'a> RefMutBitOr<&'a U::Is, Output = O> + for<'a> RefMutBitOr<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> BitXor<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefBitXor<Owned<U>, Output = O> + for<'a> RefBitXor<&'a U::Is, Output = O> + for<'a> RefBitXor<&'a mut U::Is, Output = O> + RefMutBitXor<Owned<U>, Output = O> + for<'a> RefMutBitXor<&'a U::Is, Output = O> + for<'a> RefMutBitXor<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Borrow<T> for &Is<'_, 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 Is<'_, T>
where T: ?Sized + ToOwned,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

§

type Is = T

The primary borrow target.
source§

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

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<'a, T> Debug for Is<'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 Is<'_, T>
where T: ?Sized + ToOwned, T::Owned: Default,

source§

fn default() -> Self

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

source§

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

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<T, U, O> Div<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefDiv<Owned<U>, Output = O> + for<'a> RefDiv<&'a U::Is, Output = O> + for<'a> RefDiv<&'a mut U::Is, Output = O> + RefMutDiv<Owned<U>, Output = O> + for<'a> RefMutDiv<&'a U::Is, Output = O> + for<'a> RefMutDiv<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Hash for Is<'_, 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 &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefMul<Owned<U>, Output = O> + for<'a> RefMul<&'a U::Is, Output = O> + for<'a> RefMul<&'a mut U::Is, Output = O> + RefMutMul<Owned<U>, Output = O> + for<'a> RefMutMul<&'a U::Is, Output = O> + for<'a> RefMutMul<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Neg for &Is<'_, T>
where T: ?Sized + ToOwned + RefNeg,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefNeg + RefMutNeg<Output = <T as RefNeg>::Output>,

§

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 Is<'_, T>
where T: ?Sized + ToOwned + RefNeg + RefMutNeg<Output = <T as RefNeg>::Output>, T::Owned: Neg<Output = <T as RefNeg>::Output>,

§

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> Not for &Is<'_, T>
where T: ?Sized + ToOwned + RefNot,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefNot + RefMutNot<Output = <T as RefNot>::Output>,

§

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 Is<'_, T>
where T: ?Sized + ToOwned + RefNot + RefMutNot<Output = <T as RefNot>::Output>, T::Owned: Not<Output = <T as RefNot>::Output>,

§

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> Ord for Is<'_, 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 + PartialOrd,

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

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

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 Is<'_, T>
where T: ?Sized + ToOwned + PartialEq<U>, U: ?Sized + ToOwned,

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 Is<'_, 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T, U> PartialOrd<Is<'_, U>> for IsCow<'_, 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
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

This method 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

This method 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

This method 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

This method 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 Is<'_, 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

This method 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

This method 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

This method 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

This method 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

This method 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

This method 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

This method 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

This method 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 &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefRem<Owned<U>, Output = O> + for<'a> RefRem<&'a U::Is, Output = O> + for<'a> RefRem<&'a mut U::Is, Output = O> + RefMutRem<Owned<U>, Output = O> + for<'a> RefMutRem<&'a U::Is, Output = O> + for<'a> RefMutRem<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Shl<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefShl<Owned<U>, Output = O> + for<'a> RefShl<&'a U::Is, Output = O> + for<'a> RefShl<&'a mut U::Is, Output = O> + RefMutShl<Owned<U>, Output = O> + for<'a> RefMutShl<&'a U::Is, Output = O> + for<'a> RefMutShl<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Shr<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefShr<Owned<U>, Output = O> + for<'a> RefShr<&'a U::Is, Output = O> + for<'a> RefShr<&'a mut U::Is, Output = O> + RefMutShr<Owned<U>, Output = O> + for<'a> RefMutShr<&'a U::Is, Output = O> + for<'a> RefMutShr<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Sub<U> for &Is<'_, 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,

§

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 Is<'_, T>
where T: ?Sized + ToOwnedMut + RefSub<Owned<U>, Output = O> + for<'a> RefSub<&'a U::Is, Output = O> + for<'a> RefSub<&'a mut U::Is, Output = O> + RefMutSub<Owned<U>, Output = O> + for<'a> RefMutSub<&'a U::Is, Output = O> + for<'a> RefMutSub<&'a mut U::Is, Output = O>, U: AsIs,

§

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 Is<'_, 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> + 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>,

§

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> Eq for Is<'_, T>
where T: ?Sized + ToOwned + Eq,

Auto Trait Implementations§

§

impl<'a, T: ?Sized> RefUnwindSafe for Is<'a, T>

§

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

§

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

§

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

§

impl<'a, T> !UnwindSafe for Is<'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> 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> 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<T, Rhs, O> RefAdd<Rhs> for T
where &'a T: for<'a> Add<Rhs, Output = O>, T: ?Sized,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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>,

§

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>,

§

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.