Enum ra_ap_syntax::ast::NameOrNameRef
source · pub enum NameOrNameRef {
Name(Name),
NameRef(NameRef),
}
Variants§
Implementations§
Trait Implementations§
source§impl AstNode for NameOrNameRef
impl AstNode for NameOrNameRef
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 NameOrNameRef
impl Clone for NameOrNameRef
source§fn clone(&self) -> NameOrNameRef
fn clone(&self) -> NameOrNameRef
Returns a copy 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 NameOrNameRef
impl Debug for NameOrNameRef
source§impl Display for NameOrNameRef
impl Display for NameOrNameRef
source§impl PartialEq for NameOrNameRef
impl PartialEq for NameOrNameRef
source§fn eq(&self, other: &NameOrNameRef) -> bool
fn eq(&self, other: &NameOrNameRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NameOrNameRef
Auto Trait Implementations§
impl Freeze for NameOrNameRef
impl !RefUnwindSafe for NameOrNameRef
impl !Send for NameOrNameRef
impl !Sync for NameOrNameRef
impl Unpin for NameOrNameRef
impl !UnwindSafe for NameOrNameRef
Blanket Implementations§
source§impl<N> AstNodeEdit for N
impl<N> AstNodeEdit for N
fn indent_level(&self) -> IndentLevel
fn indent(&self, level: IndentLevel) -> Self
fn dedent(&self, level: IndentLevel) -> Self
fn reset_indent(&self) -> Self
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