pub struct Node {
pub node_type: NodeType,
pub start: usize,
pub end: usize,
pub children: Box<NodeChild>,
}
Fields§
§node_type: NodeType
§start: usize
§end: usize
§children: Box<NodeChild>
Implementations§
Source§impl Node
impl Node
pub fn new(node_type: NodeType) -> Self
pub fn create( node_type: NodeType, children: NodeChild, start: usize, end: usize, ) -> Self
pub fn get_children_as_value(&self) -> &String
pub fn get_children_as_list(&self) -> &Vec<Node>
pub fn get_children_as_kv(&self) -> (&Node, &Node)
pub fn to_string(&self) -> String
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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