Struct makepad_live_compiler::live_node::LiveNode
source · pub struct LiveNode {
pub origin: LiveNodeOrigin,
pub id: LiveId,
pub value: LiveValue,
}
Fields§
§origin: LiveNodeOrigin
§id: LiveId
§value: LiveValue
Implementations§
source§impl LiveNode
impl LiveNode
pub fn empty() -> Self
pub fn from_id_value(id: LiveId, value: LiveValue) -> Self
pub fn from_value(value: LiveValue) -> Self
pub fn is_token_id_inside_dsl(&self, other_token: LiveTokenId) -> bool
pub fn prop(&self) -> LiveProp
Methods from Deref<Target = LiveValue>§
pub fn update_from_live_token(&mut self, token: &LiveToken) -> bool
pub fn is_open(&self) -> bool
pub fn is_close(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_expr(&self) -> bool
pub fn is_class(&self) -> bool
pub fn is_clone(&self) -> bool
pub fn is_object(&self) -> bool
pub fn is_dsl(&self) -> bool
pub fn set_dsl_expand_index_if_none(&mut self, index: usize)
pub fn set_expr_expand_index_if_none(&mut self, index: usize)
pub fn get_expr_expand_index(&self) -> Option<u32>
pub fn is_id(&self) -> bool
pub fn is_color(&self) -> bool
pub fn is_value_type(&self) -> bool
pub fn is_single_node(&self) -> bool
pub fn is_structy_type(&self) -> bool
pub fn is_number_type(&self) -> bool
pub fn as_float(&self) -> Option<f64>
pub fn as_int(&self) -> Option<i64>
pub fn as_vec2(&self) -> Option<Vec2>
pub fn as_vec3(&self) -> Option<Vec3>
pub fn as_vec4(&self) -> Option<Vec4>
pub fn as_bool(&self) -> Option<bool>
pub fn enum_eq(&self, id_eq: &[LiveId]) -> LiveValue
pub fn enum_neq(&self, id_eq: &[LiveId]) -> LiveValue
pub fn set_clone_name(&mut self, name: LiveId)
pub fn get_clone_name(&self) -> LiveId
pub fn variant_id(&self) -> usize
Trait Implementations§
source§impl PartialEq<LiveNode> for LiveNode
impl PartialEq<LiveNode> for LiveNode
impl StructuralPartialEq for LiveNode
Auto Trait Implementations§
impl RefUnwindSafe for LiveNode
impl !Send for LiveNode
impl !Sync for LiveNode
impl Unpin for LiveNode
impl UnwindSafe for LiveNode
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