pub struct VariantList { /* private fields */ }Implementations§
Source§impl VariantList
impl VariantList
pub fn variants(&self) -> AstChildren<Variant> ⓘ
pub fn l_paren_token(&self) -> Option<SyntaxToken>
pub fn r_paren_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for VariantList
impl AstNode for VariantList
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for VariantList
impl Clone for VariantList
Source§fn clone(&self) -> VariantList
fn clone(&self) -> VariantList
Returns a duplicate of the value. Read more
1.0.0 · 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 VariantList
impl Debug for VariantList
Source§impl Hash for VariantList
impl Hash for VariantList
Source§impl PartialEq for VariantList
impl PartialEq for VariantList
impl Eq for VariantList
impl StructuralPartialEq for VariantList
Auto Trait Implementations§
impl Freeze for VariantList
impl !RefUnwindSafe for VariantList
impl !Send for VariantList
impl !Sync for VariantList
impl Unpin for VariantList
impl !UnwindSafe for VariantList
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