pub struct NodeTypeInfo {
pub name: String,
pub named: bool,
pub fields: HashMap<NodeFieldId, FieldInfo>,
pub children: Option<ChildrenInfo>,
}Expand description
Complete node type information.
Note: supertype/subtype info is NOT stored here - use tree-sitter’s Language API.
Fields§
§name: String§named: bool§fields: HashMap<NodeFieldId, FieldInfo>§children: Option<ChildrenInfo>Trait Implementations§
Source§impl Clone for NodeTypeInfo
impl Clone for NodeTypeInfo
Source§fn clone(&self) -> NodeTypeInfo
fn clone(&self) -> NodeTypeInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NodeTypeInfo
impl RefUnwindSafe for NodeTypeInfo
impl Send for NodeTypeInfo
impl Sync for NodeTypeInfo
impl Unpin for NodeTypeInfo
impl UnwindSafe for NodeTypeInfo
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