[−][src]Enum rustc_middle::ty::util::Representability
Describes whether a type is representable. For types that are not representable, 'SelfRecursive' and 'ContainsRecursive' are used to distinguish between types that are recursive with themselves and types that contain a different recursive type. These cases can therefore be treated differently when reporting errors.
The ordering of the cases is significant. They are sorted so that cmp::max will keep the "more erroneous" of two values.
Variants
Trait Implementations
impl Clone for Representability[src]
pub fn clone(&self) -> Representability[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Representability[src]
impl Eq for Representability[src]
impl Ord for Representability[src]
pub fn cmp(&self, other: &Representability) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Representability> for Representability[src]
pub fn eq(&self, other: &Representability) -> bool[src]
pub fn ne(&self, other: &Representability) -> bool[src]
impl PartialOrd<Representability> for Representability[src]
pub fn partial_cmp(&self, other: &Representability) -> Option<Ordering>[src]
pub fn lt(&self, other: &Representability) -> bool[src]
pub fn le(&self, other: &Representability) -> bool[src]
pub fn gt(&self, other: &Representability) -> bool[src]
pub fn ge(&self, other: &Representability) -> bool[src]
impl StructuralEq for Representability[src]
impl StructuralPartialEq for Representability[src]
Auto Trait Implementations
impl RefUnwindSafe for Representability
impl !Send for Representability
impl !Sync for Representability
impl Unpin for Representability
impl UnwindSafe for Representability
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.