Enum ra_ap_syntax::ast::TypeOrConstParam
source · pub enum TypeOrConstParam {
Type(TypeParam),
Const(ConstParam),
}
Variants§
Type(TypeParam)
Const(ConstParam)
Implementations§
Trait Implementations§
source§impl AstNode for TypeOrConstParam
impl AstNode for TypeOrConstParam
fn can_cast(kind: SyntaxKind) -> boolwhere
Self: Sized,
fn cast(syntax: SyntaxNode) -> Option<Self>where
Self: Sized,
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl Clone for TypeOrConstParam
impl Clone for TypeOrConstParam
source§fn clone(&self) -> TypeOrConstParam
fn clone(&self) -> TypeOrConstParam
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 TypeOrConstParam
impl Debug for TypeOrConstParam
source§impl HasAttrs for TypeOrConstParam
impl HasAttrs for TypeOrConstParam
Auto Trait Implementations§
impl Freeze for TypeOrConstParam
impl !RefUnwindSafe for TypeOrConstParam
impl !Send for TypeOrConstParam
impl !Sync for TypeOrConstParam
impl Unpin for TypeOrConstParam
impl !UnwindSafe for TypeOrConstParam
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> AttrsOwnerEdit for Twhere
T: HasAttrs,
impl<T> AttrsOwnerEdit for Twhere
T: HasAttrs,
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