pub struct BranchContent { /* private fields */ }Implementations§
Source§impl BranchContent
impl BranchContent
Source§impl BranchContent
impl BranchContent
pub fn divert(&self) -> Option<DivertNode>
Trait Implementations§
Source§impl AstNode for BranchContent
impl AstNode for BranchContent
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 BranchContent
impl Clone for BranchContent
Source§fn clone(&self) -> BranchContent
fn clone(&self) -> BranchContent
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 BranchContent
impl Debug for BranchContent
Source§impl Display for BranchContent
impl Display for BranchContent
impl Eq for BranchContent
Source§impl Hash for BranchContent
impl Hash for BranchContent
Source§impl PartialEq for BranchContent
impl PartialEq for BranchContent
Source§fn eq(&self, other: &BranchContent) -> bool
fn eq(&self, other: &BranchContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BranchContent
Auto Trait Implementations§
impl !RefUnwindSafe for BranchContent
impl !Send for BranchContent
impl !Sync for BranchContent
impl !UnwindSafe for BranchContent
impl Freeze for BranchContent
impl Unpin for BranchContent
impl UnsafeUnpin for BranchContent
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