pub enum PropertyValue {
Float(f64),
Int(i64),
Bool(bool),
String(String),
Color([u8; 4]),
Paint(Paint),
Vec2((f64, f64)),
FloatVec(Vec<f64>),
IntVec(Vec<i64>),
StringVec(Vec<String>),
}Variants§
Float(f64)
Int(i64)
Bool(bool)
String(String)
Color([u8; 4])
Paint(Paint)
Vec2((f64, f64))
FloatVec(Vec<f64>)
IntVec(Vec<i64>)
StringVec(Vec<String>)
Implementations§
Source§impl PropertyValue
impl PropertyValue
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_paint( &self, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<Paint, LumenError>
pub fn resolve_vec2( &self, node_id: NodeId, property_path: &str, _ctx: &ExpressionContext<'_>, ) -> Result<(f64, f64), LumenError>
Trait Implementations§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnsafeUnpin for PropertyValue
impl UnwindSafe for PropertyValue
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