pub struct LiveNodeMutReader<'a> { /* private fields */ }
Implementations§
source§impl<'a> LiveNodeMutReader<'a>
impl<'a> LiveNodeMutReader<'a>
pub fn new(index: usize, nodes: &'a mut [LiveNode]) -> Self
pub fn node(&mut self) -> &mut LiveNode
pub fn node_slice(&self) -> &[LiveNode]
pub fn children_slice(&self) -> &[LiveNode]
pub fn count_children(&self) -> usize
pub fn clone_child(&self, out_vec: &mut Vec<LiveNode>)
pub fn to_string(&self, max_depth: usize) -> String
pub fn skip(&mut self)
pub fn walk(&mut self)
pub fn is_eot(&mut self) -> bool
pub fn index(&mut self) -> usize
pub fn depth(&mut self) -> usize
pub fn nodes(&mut self) -> &mut [LiveNode]
Methods from Deref<Target = LiveNode>§
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<'a> Deref for LiveNodeMutReader<'a>
impl<'a> Deref for LiveNodeMutReader<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LiveNodeMutReader<'a>
impl<'a> !Send for LiveNodeMutReader<'a>
impl<'a> !Sync for LiveNodeMutReader<'a>
impl<'a> Unpin for LiveNodeMutReader<'a>
impl<'a> !UnwindSafe for LiveNodeMutReader<'a>
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