pub struct LiveNodeReader<'a> { /* private fields */ }
Implementations§
source§impl<'a> LiveNodeReader<'a>
impl<'a> LiveNodeReader<'a>
pub fn new(index: usize, nodes: &'a [LiveNode]) -> Self
pub fn index_option( &self, index: Option<usize>, depth_change: isize ) -> Option<Self>
pub fn node(&self) -> &LiveNode
pub fn parent(&self) -> Option<Self>
pub fn append_child_index(&self) -> usize
pub fn first_child(&self) -> Option<Self>
pub fn last_child(&self) -> Option<Self>
pub fn next_child(&self) -> Option<Self>
pub fn node_slice(&self) -> &[LiveNode]
pub fn children_slice(&self) -> &[LiveNode]
pub fn child_by_number(&self, child_number: usize) -> Option<Self>
pub fn child_by_name(&self, name: LiveProp) -> Option<Self>
pub fn scope_up_by_name(&self, name: LiveProp) -> Option<Self>
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(&self) -> bool
pub fn index(&self) -> usize
pub fn depth(&self) -> usize
pub fn nodes(&self) -> &[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§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LiveNodeReader<'a>
impl<'a> !Send for LiveNodeReader<'a>
impl<'a> !Sync for LiveNodeReader<'a>
impl<'a> Unpin for LiveNodeReader<'a>
impl<'a> UnwindSafe for LiveNodeReader<'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