[−][src]Enum ucglib::build::ir::Val
The Intermediate representation of a compiled UCG AST.
Variants
Boolean(bool)Int(i64)Float(f64)Str(String)Implementations
impl Val[src]
pub fn type_name(&self) -> String[src]
Returns the Type of a Val as a string.
pub fn type_equal(&self, target: &Self) -> bool[src]
Returns true if called with a Val of the same type as itself.
pub fn equal(&self, target: &Self) -> Result<bool, BuildError>[src]
pub fn get_fields(&self) -> Option<&Vec<(String, Rc<Val>)>>[src]
Returns the fields if this Val is a tuple. None otherwise.
pub fn is_int(&self) -> bool[src]
pub fn is_empty(&self) -> bool[src]
pub fn is_float(&self) -> bool[src]
pub fn is_string(&self) -> bool[src]
pub fn is_tuple(&self) -> bool[src]
pub fn is_env(&self) -> bool[src]
pub fn is_list(&self) -> bool[src]
pub fn is_bool(&self) -> bool[src]
pub fn is_str(&self) -> bool[src]
Trait Implementations
impl Clone for Val[src]
impl Debug for Val[src]
impl Display for Val[src]
impl<'_> From<&'_ Val> for Value[src]
impl<'_> From<&'_ Value> for Val[src]
impl From<Rc<Value>> for Val[src]
impl From<String> for Val[src]
impl From<Val> for String[src]
impl From<Val> for Value[src]
impl From<Value> for Val[src]
impl PartialEq<Val> for Val[src]
impl StructuralPartialEq for Val[src]
Auto Trait Implementations
impl !RefUnwindSafe for Val
impl !Send for Val
impl !Sync for Val
impl Unpin for Val
impl !UnwindSafe for Val
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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.
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>,