pub struct GenericArg(/* private fields */);Expand description
A single generic argument (either a type or a numeric literal).
Trait Implementations§
Source§impl AstNode for GenericArg
impl AstNode for GenericArg
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a SyntaxNode with the given kind can be cast to
this AST type.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Attempt to cast a
SyntaxNode into this AST type. Read moreSource§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Return a reference to the underlying
SyntaxNode.Source§impl Clone for GenericArg
impl Clone for GenericArg
Source§fn clone(&self) -> GenericArg
fn clone(&self) -> GenericArg
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 GenericArg
impl Debug for GenericArg
Source§impl Hash for GenericArg
impl Hash for GenericArg
Source§impl PartialEq for GenericArg
impl PartialEq for GenericArg
Source§fn eq(&self, other: &GenericArg) -> bool
fn eq(&self, other: &GenericArg) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GenericArg
impl StructuralPartialEq for GenericArg
Auto Trait Implementations§
impl Freeze for GenericArg
impl !RefUnwindSafe for GenericArg
impl !Send for GenericArg
impl !Sync for GenericArg
impl Unpin for GenericArg
impl UnsafeUnpin for GenericArg
impl !UnwindSafe for GenericArg
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