[−][src]Enum as_is::Is
Represents an owned, an immutably borrowed, or a mutably borrowed data.
Variants
Owned(T::Owned)
Owned data.
Borrowed(&'a T)
Immutably borrowed data.
MutBorrowed(&'a mut T)
Mutably borrowed data.
Trait Implementations
impl<T: ?Sized, U, O, '_> Add<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Add<Owned<U>, Output = O> + Add<&'a U::Is, Output = O>,
&'a T: Add<Owned<U>, Output = O> + Add<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Add<Owned<U>, Output = O> + Add<&'a U::Is, Output = O>,
&'a T: Add<Owned<U>, Output = O> + Add<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the +
operator.
fn add(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, '_> AsIs for Is<'_, T> where
T: ToOwned,
[src]
T: ToOwned,
type Is = T
The base type associated with both owned and borrowed data.
fn as_is<'a>(self) -> Is<'a, T> where
Self: 'a,
[src]
Self: 'a,
fn into_is_cow<'a>(self) -> IsCow<'a, Self::Is> where
Self: 'a,
[src]
Self: 'a,
fn into_is_mut<'a>(self) -> IsMut<'a, Self::Is> where
Self: 'a,
Owned<Self>: BorrowMut<Self::Is>,
[src]
Self: 'a,
Owned<Self>: BorrowMut<Self::Is>,
fn into_owned(self) -> Owned<Self>
[src]
fn into_cow<'a>(self) -> Cow<'a, Self::Is> where
Self: 'a,
[src]
Self: 'a,
impl<T: ?Sized, U: ?Sized, '_> AsRef<U> for Is<'_, T> where
T: ToOwned + AsRef<U>,
[src]
T: ToOwned + AsRef<U>,
impl<T: ?Sized, '_> Binary for Is<'_, T> where
T: ToOwned + Binary,
[src]
T: ToOwned + Binary,
impl<T: ?Sized, U, O, '_> BitAnd<U> for Is<'_, T> where
T: ToOwned,
T::Owned: BitAnd<Owned<U>, Output = O> + BitAnd<&'a U::Is, Output = O>,
&'a T: BitAnd<Owned<U>, Output = O> + BitAnd<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: BitAnd<Owned<U>, Output = O> + BitAnd<&'a U::Is, Output = O>,
&'a T: BitAnd<Owned<U>, Output = O> + BitAnd<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the &
operator.
fn bitand(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, U, O, '_> BitOr<U> for Is<'_, T> where
T: ToOwned,
T::Owned: BitOr<Owned<U>, Output = O> + BitOr<&'a U::Is, Output = O>,
&'a T: BitOr<Owned<U>, Output = O> + BitOr<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: BitOr<Owned<U>, Output = O> + BitOr<&'a U::Is, Output = O>,
&'a T: BitOr<Owned<U>, Output = O> + BitOr<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the |
operator.
fn bitor(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, U, O, '_> BitXor<U> for Is<'_, T> where
T: ToOwned,
T::Owned: BitXor<Owned<U>, Output = O> + BitXor<&'a U::Is, Output = O>,
&'a T: BitXor<Owned<U>, Output = O> + BitXor<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: BitXor<Owned<U>, Output = O> + BitXor<&'a U::Is, Output = O>,
&'a T: BitXor<Owned<U>, Output = O> + BitXor<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, '_> Borrow<T> for Is<'_, T> where
T: ToOwned,
[src]
T: ToOwned,
impl<T: ?Sized, '_> Clone for Is<'_, T> where
T: ToOwned,
T::Owned: Clone,
[src]
T: ToOwned,
T::Owned: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
[src]
impl<'a, T: Debug + ?Sized> Debug for Is<'a, T> where
T: ToOwned,
T::Owned: Debug,
[src]
T: ToOwned,
T::Owned: Debug,
impl<T: ?Sized, '_> Default for Is<'_, T> where
T: ToOwned,
T::Owned: Default,
[src]
T: ToOwned,
T::Owned: Default,
impl<T: ?Sized, '_> Deref for Is<'_, T> where
T: ToOwned,
[src]
T: ToOwned,
impl<T: ?Sized, '_> Display for Is<'_, T> where
T: ToOwned + Display,
[src]
T: ToOwned + Display,
impl<T: ?Sized, U, O, '_> Div<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Div<Owned<U>, Output = O> + Div<&'a U::Is, Output = O>,
&'a T: Div<Owned<U>, Output = O> + Div<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Div<Owned<U>, Output = O> + Div<&'a U::Is, Output = O>,
&'a T: Div<Owned<U>, Output = O> + Div<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the /
operator.
fn div(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, '_> Eq for Is<'_, T> where
T: ToOwned + Eq,
[src]
T: ToOwned + Eq,
impl<T: ?Sized, '_> Hash for Is<'_, T> where
T: ToOwned + Hash,
[src]
T: ToOwned + Hash,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized, '_> LowerExp for Is<'_, T> where
T: ToOwned + LowerExp,
[src]
T: ToOwned + LowerExp,
impl<T: ?Sized, '_> LowerHex for Is<'_, T> where
T: ToOwned + LowerHex,
[src]
T: ToOwned + LowerHex,
impl<T: ?Sized, U, O, '_> Mul<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Mul<Owned<U>, Output = O> + Mul<&'a U::Is, Output = O>,
&'a T: Mul<Owned<U>, Output = O> + Mul<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Mul<Owned<U>, Output = O> + Mul<&'a U::Is, Output = O>,
&'a T: Mul<Owned<U>, Output = O> + Mul<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the *
operator.
fn mul(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, O, '_> Neg for Is<'_, T> where
T: ToOwned,
T::Owned: Neg<Output = O>,
&'a T: Neg<Output = O>,
[src]
T: ToOwned,
T::Owned: Neg<Output = O>,
&'a T: Neg<Output = O>,
impl<T: ?Sized, O, '_> Not for Is<'_, T> where
T: ToOwned,
T::Owned: Not<Output = O>,
&'a T: Not<Output = O>,
[src]
T: ToOwned,
T::Owned: Not<Output = O>,
&'a T: Not<Output = O>,
impl<T: ?Sized, '_> Octal for Is<'_, T> where
T: ToOwned + Octal,
[src]
T: ToOwned + Octal,
impl<T: ?Sized, '_> Ord for Is<'_, T> where
T: ToOwned + Ord,
[src]
T: ToOwned + Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialEq<Is<'_, U>> for Is<'_, T> where
T: ToOwned + PartialEq<U>,
U: ToOwned,
[src]
T: ToOwned + PartialEq<U>,
U: ToOwned,
impl<T: ?Sized, U: ?Sized, '_, '_> PartialEq<Is<'_, U>> for IsCow<'_, T> where
T: ToOwned + PartialEq<U>,
U: ToOwned,
[src]
T: ToOwned + PartialEq<U>,
U: ToOwned,
impl<T: ?Sized, U: ?Sized, '_, '_> PartialEq<Is<'_, U>> for IsMut<'_, T> where
T: ToOwned + PartialEq<U>,
T::Owned: BorrowMut<T>,
U: ToOwned,
[src]
T: ToOwned + PartialEq<U>,
T::Owned: BorrowMut<T>,
U: ToOwned,
impl<T: ?Sized, U: ?Sized, '_, '_> PartialEq<IsCow<'_, U>> for Is<'_, T> where
T: ToOwned + PartialEq<U>,
U: ToOwned,
[src]
T: ToOwned + PartialEq<U>,
U: ToOwned,
fn eq(&self, other: &IsCow<'_, U>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialEq<IsMut<'_, U>> for Is<'_, T> where
T: ToOwned + PartialEq<U>,
U: ToOwned,
U::Owned: BorrowMut<U>,
[src]
T: ToOwned + PartialEq<U>,
U: ToOwned,
U::Owned: BorrowMut<U>,
fn eq(&self, other: &IsMut<'_, U>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialOrd<Is<'_, U>> for Is<'_, T> where
T: ToOwned + PartialOrd<U>,
U: ToOwned,
[src]
T: ToOwned + PartialOrd<U>,
U: ToOwned,
fn partial_cmp(&self, other: &Is<'_, U>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialOrd<Is<'_, U>> for IsCow<'_, T> where
T: ToOwned + PartialOrd<U>,
U: ToOwned,
[src]
T: ToOwned + PartialOrd<U>,
U: ToOwned,
fn partial_cmp(&self, other: &Is<'_, U>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialOrd<Is<'_, U>> for IsMut<'_, T> where
T: ToOwned + PartialOrd<U>,
T::Owned: BorrowMut<T>,
U: ToOwned,
[src]
T: ToOwned + PartialOrd<U>,
T::Owned: BorrowMut<T>,
U: ToOwned,
fn partial_cmp(&self, other: &Is<'_, U>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialOrd<IsCow<'_, U>> for Is<'_, T> where
T: ToOwned + PartialOrd<U>,
U: ToOwned,
[src]
T: ToOwned + PartialOrd<U>,
U: ToOwned,
fn partial_cmp(&self, other: &IsCow<'_, U>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U: ?Sized, '_, '_> PartialOrd<IsMut<'_, U>> for Is<'_, T> where
T: ToOwned + PartialOrd<U>,
U: ToOwned,
U::Owned: BorrowMut<U>,
[src]
T: ToOwned + PartialOrd<U>,
U: ToOwned,
U::Owned: BorrowMut<U>,
fn partial_cmp(&self, other: &IsMut<'_, U>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized, U, O, '_> Rem<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Rem<Owned<U>, Output = O> + Rem<&'a U::Is, Output = O>,
&'a T: Rem<Owned<U>, Output = O> + Rem<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Rem<Owned<U>, Output = O> + Rem<&'a U::Is, Output = O>,
&'a T: Rem<Owned<U>, Output = O> + Rem<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the %
operator.
fn rem(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, U, O, '_> Shl<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Shl<Owned<U>, Output = O> + Shl<&'a U::Is, Output = O>,
&'a T: Shl<Owned<U>, Output = O> + Shl<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Shl<Owned<U>, Output = O> + Shl<&'a U::Is, Output = O>,
&'a T: Shl<Owned<U>, Output = O> + Shl<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the <<
operator.
fn shl(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, U, O, '_> Shr<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Shr<Owned<U>, Output = O> + Shr<&'a U::Is, Output = O>,
&'a T: Shr<Owned<U>, Output = O> + Shr<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Shr<Owned<U>, Output = O> + Shr<&'a U::Is, Output = O>,
&'a T: Shr<Owned<U>, Output = O> + Shr<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the >>
operator.
fn shr(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, U, O, '_> Sub<U> for Is<'_, T> where
T: ToOwned,
T::Owned: Sub<Owned<U>, Output = O> + Sub<&'a U::Is, Output = O>,
&'a T: Sub<Owned<U>, Output = O> + Sub<&'b U::Is, Output = O>,
U: AsIs,
[src]
T: ToOwned,
T::Owned: Sub<Owned<U>, Output = O> + Sub<&'a U::Is, Output = O>,
&'a T: Sub<Owned<U>, Output = O> + Sub<&'b U::Is, Output = O>,
U: AsIs,
type Output = O
The resulting type after applying the -
operator.
fn sub(self, rhs: U) -> Self::Output
[src]
impl<T: ?Sized, '_> UpperExp for Is<'_, T> where
T: ToOwned + UpperExp,
[src]
T: ToOwned + UpperExp,
impl<T: ?Sized, '_> UpperHex for Is<'_, T> where
T: ToOwned + UpperHex,
[src]
T: ToOwned + UpperHex,
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for Is<'a, T> where
T: RefUnwindSafe,
<T as ToOwned>::Owned: RefUnwindSafe,
T: RefUnwindSafe,
<T as ToOwned>::Owned: RefUnwindSafe,
impl<'a, T: ?Sized> Send for Is<'a, T> where
T: Send + Sync,
<T as ToOwned>::Owned: Send,
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,
T: Sync,
<T as ToOwned>::Owned: Sync,
impl<'a, T: ?Sized> Unpin for Is<'a, T> where
<T as ToOwned>::Owned: Unpin,
<T as ToOwned>::Owned: Unpin,
impl<'a, T> !UnwindSafe for Is<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,