pub enum Definition {
ModuleDcl(ModuleDcl),
TypeDcl(TypeDcl),
ConstDcl(ConstDcl),
ExceptDcl(ExceptDcl),
InterfaceDcl(InterfaceDcl),
TemplateModuleDcl(TemplateModuleDcl),
TemplateModuleInst(TemplateModuleInst),
PreprocInclude(PreprocInclude),
PreprocCall(PreprocCall),
PreprocDefine(PreprocDefine),
}Variants§
ModuleDcl(ModuleDcl)
TypeDcl(TypeDcl)
ConstDcl(ConstDcl)
ExceptDcl(ExceptDcl)
InterfaceDcl(InterfaceDcl)
TemplateModuleDcl(TemplateModuleDcl)
TemplateModuleInst(TemplateModuleInst)
PreprocInclude(PreprocInclude)
PreprocCall(PreprocCall)
PreprocDefine(PreprocDefine)
Trait Implementations§
Source§impl Debug for Definition
impl Debug for Definition
Source§impl<'de> Deserialize<'de> for Definition
impl<'de> Deserialize<'de> for Definition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> FromTreeSitter<'a> for Definition
impl<'a> FromTreeSitter<'a> for Definition
fn from_node(node: Node<'a>, ctx: &mut ParseContext<'a>) -> ParserResult<Self>
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnsafeUnpin for Definition
impl UnwindSafe for Definition
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