pub enum NodeProperty {
Float(f64),
Int(i64),
Bool(bool),
String(String),
Color([u8; 4]),
Vec2((f64, f64)),
FloatVec(Vec<f64>),
IntVec(Vec<i64>),
StringVec(Vec<String>),
Expr(Expression),
}Variants§
Float(f64)
Int(i64)
Bool(bool)
String(String)
Color([u8; 4])
Vec2((f64, f64))
FloatVec(Vec<f64>)
IntVec(Vec<i64>)
StringVec(Vec<String>)
Expr(Expression)
Implementations§
Source§impl NodeProperty
impl NodeProperty
pub fn resolve_float( &self, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<f64, LumenError>
pub fn resolve_int( &self, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<i64, LumenError>
pub fn resolve_bool( &self, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<bool, LumenError>
pub fn resolve_string( &self, node_id: NodeId, property_path: &str, ctx: &ExpressionContext<'_>, ) -> Result<String, LumenError>
pub fn resolve_color( &self, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<[u8; 4], LumenError>
pub fn resolve_vec2( &self, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<(f64, f64), LumenError>
Trait Implementations§
Source§impl Clone for NodeProperty
impl Clone for NodeProperty
Source§fn clone(&self) -> NodeProperty
fn clone(&self) -> NodeProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeProperty
impl RefUnwindSafe for NodeProperty
impl Send for NodeProperty
impl Sync for NodeProperty
impl Unpin for NodeProperty
impl UnsafeUnpin for NodeProperty
impl UnwindSafe for NodeProperty
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