pub enum Value<'a> {
Show 18 variants
Bool,
S(IntWidth),
U(IntWidth),
F(FloatWidth),
Char,
String,
List(Box<Value<'a>>),
FixList(Box<Value<'a>>, u32),
Record(Vec<RecordField<'a>>),
Tuple(Vec<Value<'a>>),
Flags(Vec<Name<'a>>),
Variant(Vec<VariantCase<'a>>),
Enum(Vec<Name<'a>>),
Option(Box<Value<'a>>),
Result(Box<Option<Value<'a>>>, Box<Option<Value<'a>>>),
Own(Handleable),
Borrow(Handleable),
Var(Option<Tyvar>, Box<Value<'a>>),
}
Expand description
valtype_e in the specification
Variants§
Bool
S(IntWidth)
U(IntWidth)
F(FloatWidth)
Char
String
List(Box<Value<'a>>)
FixList(Box<Value<'a>>, u32)
Record(Vec<RecordField<'a>>)
Tuple(Vec<Value<'a>>)
Flags(Vec<Name<'a>>)
Variant(Vec<VariantCase<'a>>)
Enum(Vec<Name<'a>>)
Option(Box<Value<'a>>)
Result(Box<Option<Value<'a>>>, Box<Option<Value<'a>>>)
Own(Handleable)
Borrow(Handleable)
Var(Option<Tyvar>, Box<Value<'a>>)
This records that a type variable was once here, and is used to enforce export namedness checks.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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