[−][src]Enum into_owned::Is
Represents an owned value, an immutably borrowed reference, or a mutably borrowed reference.
This enum
is created by the as_is
method on IntoOwned
.
See its documentation for more.
Variants
Owned(T::Owned)
Borrowed(&'a T::Owned)
MutBorrowed(&'a mut T::Owned)
Trait Implementations
impl<'a, T: Debug> Debug for Is<'a, T> where
T: 'a + IntoOwned,
T::Owned: Debug,
T::Owned: Debug,
T::Owned: Debug,
[src]
T: 'a + IntoOwned,
T::Owned: Debug,
T::Owned: Debug,
T::Owned: Debug,
impl<'_, T> Eq for Is<'_, T> where
T: IntoOwned,
Self: PartialEq,
[src]
T: IntoOwned,
Self: PartialEq,
impl<'_, T> Hash for Is<'_, T> where
T: IntoOwned,
T::Owned: Hash,
[src]
T: IntoOwned,
T::Owned: 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> Ord for Is<'_, T> where
T: IntoOwned,
Self: Eq + PartialOrd,
T::Owned: Ord,
[src]
T: IntoOwned,
Self: Eq + PartialOrd,
T::Owned: 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, U> PartialEq<Is<'_, U>> for Is<'_, T> where
T: IntoOwned,
U: IntoOwned,
T::Owned: PartialEq<U::Owned>,
[src]
T: IntoOwned,
U: IntoOwned,
T::Owned: PartialEq<U::Owned>,
impl<'_, '_, T, U> PartialOrd<Is<'_, U>> for Is<'_, T> where
T: IntoOwned,
U: IntoOwned,
Self: PartialEq<Is<'a, U>>,
T::Owned: PartialOrd<U::Owned>,
[src]
T: IntoOwned,
U: IntoOwned,
Self: PartialEq<Is<'a, U>>,
T::Owned: PartialOrd<U::Owned>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Is<'a, T> where
<T as IntoOwned>::Owned: RefUnwindSafe,
<T as IntoOwned>::Owned: RefUnwindSafe,
impl<'a, T> Send for Is<'a, T> where
<T as IntoOwned>::Owned: Send + Sync,
<T as IntoOwned>::Owned: Send + Sync,
impl<'a, T> Sync for Is<'a, T> where
<T as IntoOwned>::Owned: Sync,
<T as IntoOwned>::Owned: Sync,
impl<'a, T> Unpin for Is<'a, T> where
<T as IntoOwned>::Owned: Unpin,
<T as IntoOwned>::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, 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>,