Enum rat_in_a_tube::NodeType
source · pub enum NodeType {
Primitive(PrimitiveType),
FunctionCall(bool),
}
Expand description
Type of the node.
Variants
Primitive(PrimitiveType)
Node refers to a value.
If PrimitiveType refers to a variable, then string_data will be set to the variable name.
FunctionCall(bool)
Node is a function call.
If the boolean is true
, then the function is an engine function.
Implementations
sourceimpl NodeType
impl NodeType
sourcepub fn is_variable(&self) -> bool
pub fn is_variable(&self) -> bool
Get whether or not the node type is a variable.
sourcepub fn is_static_value(&self) -> bool
pub fn is_static_value(&self) -> bool
Get whether or not the node type is a static value and not a variable.
sourcepub fn is_engine_function(&self) -> bool
pub fn is_engine_function(&self) -> bool
Get whether or not the node type is an engine function.
sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Get whether or not the node type is a primitive.
sourcepub fn is_function_call(&self) -> bool
pub fn is_function_call(&self) -> bool
Get whether or not the node type is a function call.
Trait Implementations
impl Copy for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more