pub enum ValueEnum {
Sexpr(Sexpr),
Bool(bool),
LogicalOp(LogicalOp),
Lambda(Lambda),
BoolTy(Bool),
UnitTy(Unit),
Parameter(Parameter),
}
Expand description
A rain
value
Variants§
Sexpr(Sexpr)
An S-expression
Bool(bool)
Boolean values
LogicalOp(LogicalOp)
Logical operations
Lambda(Lambda)
A lambda function
BoolTy(Bool)
The boolean type
UnitTy(Unit)
The unit type
Parameter(Parameter)
A parameter to a region
Implementations§
Source§impl ValueEnum
impl ValueEnum
Sourcepub fn applicable(&self) -> bool
pub fn applicable(&self) -> bool
Check whether this value enum variant can potentially be applied
Sourcepub fn name_print(
&self,
fmt: &mut Formatter<'_>,
name: Option<&str>,
) -> Result<(), Error>
pub fn name_print( &self, fmt: &mut Formatter<'_>, name: Option<&str>, ) -> Result<(), Error>
Print a value with a name
Sourcepub fn base_region(&self) -> Cow<'_, WeakRegion>
pub fn base_region(&self) -> Cow<'_, WeakRegion>
Get the base region of this ValueEnum
Trait Implementations§
impl Eq for ValueEnum
impl StructuralPartialEq for ValueEnum
Auto Trait Implementations§
impl Freeze for ValueEnum
impl !RefUnwindSafe for ValueEnum
impl Send for ValueEnum
impl Sync for ValueEnum
impl Unpin for ValueEnum
impl !UnwindSafe for ValueEnum
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<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