pub enum TyValue {
Rational(BigRational),
Bool(bool),
}Expand description
Some constant data and its corresponding type.
Variants§
Rational(BigRational)
Bool(bool)
Implementations§
Trait Implementations§
Source§impl From<Ratio<BigInt>> for TyValue
impl From<Ratio<BigInt>> for TyValue
Source§fn from(input: BigRational) -> Self
fn from(input: BigRational) -> Self
Converts to this type from the input type.
impl Eq for TyValue
impl StructuralPartialEq for TyValue
Auto Trait Implementations§
impl Freeze for TyValue
impl RefUnwindSafe for TyValue
impl Send for TyValue
impl Sync for TyValue
impl Unpin for TyValue
impl UnwindSafe for TyValue
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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