pub struct Directive(/* private fields */);Implementations§
Source§impl Directive
impl Directive
pub fn sharp(&self) -> Option<SyntaxToken>
pub fn name(&self) -> Option<SyntaxToken>
pub fn args(&self) -> Option<LineString>
Trait Implementations§
Source§impl AstNode for Directive
impl AstNode for Directive
type Language = MicalLanguage
fn can_cast(kind: <Self::Language as Language>::Kind) -> bool
fn cast(node: SyntaxNode<Self::Language>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<Self::Language>
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for Directive
impl !RefUnwindSafe for Directive
impl !Send for Directive
impl !Sync for Directive
impl Unpin for Directive
impl UnsafeUnpin for Directive
impl !UnwindSafe for Directive
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