pub struct StaticNodeTypeInfo {
pub name: &'static str,
pub named: bool,
pub fields: &'static [(NodeFieldId, StaticFieldInfo)],
pub children: Option<StaticChildrenInfo>,
}Expand description
Complete node type information for static storage.
Note: supertype/subtype info is NOT stored here - use Language::node_kind_is_supertype()
and Language::subtypes_for_supertype() from tree-sitter instead.
Fields§
§name: &'static str§named: bool§fields: &'static [(NodeFieldId, StaticFieldInfo)]Sorted slice of (field_id, field_info) pairs for binary search.
children: Option<StaticChildrenInfo>Trait Implementations§
Source§impl Clone for StaticNodeTypeInfo
impl Clone for StaticNodeTypeInfo
Source§fn clone(&self) -> StaticNodeTypeInfo
fn clone(&self) -> StaticNodeTypeInfo
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 moreSource§impl Debug for StaticNodeTypeInfo
impl Debug for StaticNodeTypeInfo
impl Copy for StaticNodeTypeInfo
Auto Trait Implementations§
impl Freeze for StaticNodeTypeInfo
impl RefUnwindSafe for StaticNodeTypeInfo
impl Send for StaticNodeTypeInfo
impl Sync for StaticNodeTypeInfo
impl Unpin for StaticNodeTypeInfo
impl UnwindSafe for StaticNodeTypeInfo
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