pub struct NodeType {
pub name: NodeName,
pub kind: NodeTypeKind,
/* private fields */
}Expand description
Describes a grammar node; corresponds to an entry in node-types.json
Fields§
§name: NodeName§kind: NodeTypeKindImplementations§
Source§impl NodeType
impl NodeType
pub fn rust_type_path(&self) -> Cow<'_, str>
pub fn anon_union_type_name<'a>( types: impl IntoIterator<Item = &'a NodeType, IntoIter: 'a>, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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