pub struct ConstraintName { /* private fields */ }Implementations§
Source§impl ConstraintName
impl ConstraintName
pub fn name(&self) -> Option<Name>
pub fn constraint_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for ConstraintName
impl AstNode for ConstraintName
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 ConstraintName
impl Clone for ConstraintName
Source§fn clone(&self) -> ConstraintName
fn clone(&self) -> ConstraintName
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 ConstraintName
impl Debug for ConstraintName
Source§impl Hash for ConstraintName
impl Hash for ConstraintName
Source§impl PartialEq for ConstraintName
impl PartialEq for ConstraintName
impl Eq for ConstraintName
impl StructuralPartialEq for ConstraintName
Auto Trait Implementations§
impl Freeze for ConstraintName
impl !RefUnwindSafe for ConstraintName
impl !Send for ConstraintName
impl !Sync for ConstraintName
impl Unpin for ConstraintName
impl !UnwindSafe for ConstraintName
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