pub struct BangDispatch { /* private fields */ }Implementations§
Source§impl BangDispatch
impl BangDispatch
Sourcepub fn name(&self) -> Option<DispatchName>
pub fn name(&self) -> Option<DispatchName>
The dispatching name after the ! sigil.
Sourcepub fn line(&self) -> Option<ContentLine>
pub fn line(&self) -> Option<ContentLine>
The remainder after the name — a fused content line, the same way
CompactCue::line fuses its dialogue line.
Trait Implementations§
Source§impl AstNode for BangDispatch
impl AstNode for BangDispatch
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for BangDispatch
impl Clone for BangDispatch
Source§fn clone(&self) -> BangDispatch
fn clone(&self) -> BangDispatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BangDispatch
impl Debug for BangDispatch
Source§impl Display for BangDispatch
impl Display for BangDispatch
impl Eq for BangDispatch
Source§impl Hash for BangDispatch
impl Hash for BangDispatch
Source§impl PartialEq for BangDispatch
impl PartialEq for BangDispatch
impl StructuralPartialEq for BangDispatch
Auto Trait Implementations§
impl !RefUnwindSafe for BangDispatch
impl !Send for BangDispatch
impl !Sync for BangDispatch
impl !UnwindSafe for BangDispatch
impl Freeze for BangDispatch
impl Unpin for BangDispatch
impl UnsafeUnpin for BangDispatch
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