pub struct DefaultConstraint { /* private fields */ }
Implementations§
Source§impl DefaultConstraint
impl DefaultConstraint
pub fn expr(&self) -> Option<Expr>
pub fn name_ref(&self) -> Option<NameRef>
pub fn constraint_token(&self) -> Option<SyntaxToken>
pub fn default_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for DefaultConstraint
impl AstNode for DefaultConstraint
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 DefaultConstraint
impl Clone for DefaultConstraint
Source§fn clone(&self) -> DefaultConstraint
fn clone(&self) -> DefaultConstraint
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 DefaultConstraint
impl Debug for DefaultConstraint
Source§impl From<DefaultConstraint> for Constraint
impl From<DefaultConstraint> for Constraint
Source§fn from(node: DefaultConstraint) -> Constraint
fn from(node: DefaultConstraint) -> Constraint
Converts to this type from the input type.
Source§impl Hash for DefaultConstraint
impl Hash for DefaultConstraint
Source§impl PartialEq for DefaultConstraint
impl PartialEq for DefaultConstraint
impl Eq for DefaultConstraint
impl StructuralPartialEq for DefaultConstraint
Auto Trait Implementations§
impl Freeze for DefaultConstraint
impl !RefUnwindSafe for DefaultConstraint
impl !Send for DefaultConstraint
impl !Sync for DefaultConstraint
impl Unpin for DefaultConstraint
impl !UnwindSafe for DefaultConstraint
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