pub enum GlowElement {
Node(GlowNode),
Parameter(GlowParameter),
Function(GlowFunction),
Matrix(GlowMatrix),
Command(GlowCommand),
QualifiedNode(EmberPath, GlowNode),
QualifiedParameter(EmberPath, GlowParameter),
QualifiedFunction(EmberPath, GlowFunction),
QualifiedMatrix(EmberPath, GlowMatrix),
Template(GlowTemplate),
}Expand description
A Glow element (can be a node, parameter, function, matrix, or command).
Variants§
Node(GlowNode)
A node in the tree
Parameter(GlowParameter)
A parameter
Function(GlowFunction)
A function
Matrix(GlowMatrix)
A matrix
Command(GlowCommand)
A command
QualifiedNode(EmberPath, GlowNode)
A qualified node (with path)
QualifiedParameter(EmberPath, GlowParameter)
A qualified parameter (with path)
QualifiedFunction(EmberPath, GlowFunction)
A qualified function (with path)
QualifiedMatrix(EmberPath, GlowMatrix)
A qualified matrix (with path)
Template(GlowTemplate)
A template
Implementations§
Source§impl GlowElement
impl GlowElement
Sourcepub fn is_parameter(&self) -> bool
pub fn is_parameter(&self) -> bool
Check if this is a parameter.
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Check if this is a function.
Sourcepub fn is_command(&self) -> bool
pub fn is_command(&self) -> bool
Check if this is a command.
Trait Implementations§
Source§impl Clone for GlowElement
impl Clone for GlowElement
Source§fn clone(&self) -> GlowElement
fn clone(&self) -> GlowElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GlowElement
impl RefUnwindSafe for GlowElement
impl Send for GlowElement
impl Sync for GlowElement
impl Unpin for GlowElement
impl UnsafeUnpin for GlowElement
impl UnwindSafe for GlowElement
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