pub struct SimpleDivert { /* private fields */ }Implementations§
Source§impl SimpleDivert
impl SimpleDivert
pub fn targets(&self) -> impl Iterator<Item = DivertTargetWithArgs>
Trait Implementations§
Source§impl AstNode for SimpleDivert
impl AstNode for SimpleDivert
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.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 SimpleDivert
impl Clone for SimpleDivert
Source§fn clone(&self) -> SimpleDivert
fn clone(&self) -> SimpleDivert
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 SimpleDivert
impl Debug for SimpleDivert
Source§impl Display for SimpleDivert
impl Display for SimpleDivert
impl Eq for SimpleDivert
Source§impl Hash for SimpleDivert
impl Hash for SimpleDivert
Source§impl PartialEq for SimpleDivert
impl PartialEq for SimpleDivert
impl StructuralPartialEq for SimpleDivert
Auto Trait Implementations§
impl !RefUnwindSafe for SimpleDivert
impl !Send for SimpleDivert
impl !Sync for SimpleDivert
impl !UnwindSafe for SimpleDivert
impl Freeze for SimpleDivert
impl Unpin for SimpleDivert
impl UnsafeUnpin for SimpleDivert
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