pub struct ConstraintDef {
pub identification: Identification,
pub specializes: Option<String>,
pub specializes_span: Option<Span>,
pub body: ConstraintDefBody,
}Expand description
Constraint definition: constraint def Identification body.
Fields§
§identification: Identification§specializes: Option<String>§specializes_span: Option<Span>§body: ConstraintDefBodyTrait Implementations§
Source§impl Clone for ConstraintDef
impl Clone for ConstraintDef
Source§fn clone(&self) -> ConstraintDef
fn clone(&self) -> ConstraintDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstraintDef
impl Debug for ConstraintDef
impl Eq for ConstraintDef
Source§impl PartialEq for ConstraintDef
impl PartialEq for ConstraintDef
Source§fn eq(&self, other: &ConstraintDef) -> bool
fn eq(&self, other: &ConstraintDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstraintDef
Auto Trait Implementations§
impl Freeze for ConstraintDef
impl RefUnwindSafe for ConstraintDef
impl Send for ConstraintDef
impl Sync for ConstraintDef
impl Unpin for ConstraintDef
impl UnsafeUnpin for ConstraintDef
impl UnwindSafe for ConstraintDef
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