pub struct ConstDef<'a> { /* private fields */ }
Trait Implementations§
Source§impl<'a> AstNode<'a> for ConstDef<'a>
impl<'a> AstNode<'a> for ConstDef<'a>
fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self>
fn syntax(self) -> SyntaxNodeRef<'a>
Source§impl<'a> AttrsOwner<'a> for ConstDef<'a>
impl<'a> AttrsOwner<'a> for ConstDef<'a>
Source§impl<'a> From<ConstDef<'a>> for ConstDefNode
impl<'a> From<ConstDef<'a>> for ConstDefNode
Source§fn from(ast: ConstDef<'a>) -> ConstDefNode
fn from(ast: ConstDef<'a>) -> ConstDefNode
Converts to this type from the input type.
Source§impl<'a> TypeParamsOwner<'a> for ConstDef<'a>
impl<'a> TypeParamsOwner<'a> for ConstDef<'a>
fn type_param_list(self) -> Option<TypeParamList<'a>>
fn where_clause(self) -> Option<WhereClause<'a>>
impl<'a> Copy for ConstDef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstDef<'a>
impl<'a> !RefUnwindSafe for ConstDef<'a>
impl<'a> Send for ConstDef<'a>
impl<'a> Sync for ConstDef<'a>
impl<'a> Unpin for ConstDef<'a>
impl<'a> !UnwindSafe for ConstDef<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more