pub struct PrettyAlgebraicType(pub AlgebraicType);Expand description
A wrapper around an AlgebraicType that implements fmt::Display.
Tuple Fields§
§0: AlgebraicTypeTrait Implementations§
Source§impl Debug for PrettyAlgebraicType
impl Debug for PrettyAlgebraicType
Source§impl Display for PrettyAlgebraicType
impl Display for PrettyAlgebraicType
Source§impl From<AlgebraicType> for PrettyAlgebraicType
impl From<AlgebraicType> for PrettyAlgebraicType
Source§fn from(ty: AlgebraicType) -> Self
fn from(ty: AlgebraicType) -> Self
Converts to this type from the input type.
Source§impl From<ProductType> for PrettyAlgebraicType
impl From<ProductType> for PrettyAlgebraicType
Source§fn from(ty: ProductType) -> Self
fn from(ty: ProductType) -> Self
Converts to this type from the input type.
Source§impl From<SumType> for PrettyAlgebraicType
impl From<SumType> for PrettyAlgebraicType
Source§impl Ord for PrettyAlgebraicType
impl Ord for PrettyAlgebraicType
Source§fn cmp(&self, other: &PrettyAlgebraicType) -> Ordering
fn cmp(&self, other: &PrettyAlgebraicType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrettyAlgebraicType
impl PartialEq for PrettyAlgebraicType
Source§impl PartialOrd for PrettyAlgebraicType
impl PartialOrd for PrettyAlgebraicType
impl Eq for PrettyAlgebraicType
impl StructuralPartialEq for PrettyAlgebraicType
Auto Trait Implementations§
impl Freeze for PrettyAlgebraicType
impl RefUnwindSafe for PrettyAlgebraicType
impl Send for PrettyAlgebraicType
impl Sync for PrettyAlgebraicType
impl Unpin for PrettyAlgebraicType
impl UnwindSafe for PrettyAlgebraicType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more