pub struct ConstraintRef { /* private fields */ }Expand description
Constraint reference metadata.
Implementations§
Source§impl ConstraintRef
impl ConstraintRef
Sourcepub const fn new(name: Option<ConstraintName>, table: Option<TableName>) -> Self
pub const fn new(name: Option<ConstraintName>, table: Option<TableName>) -> Self
Creates constraint reference metadata.
Sourcepub const fn name(&self) -> Option<&ConstraintName>
pub const fn name(&self) -> Option<&ConstraintName>
Returns the optional constraint name.
Trait Implementations§
Source§impl Clone for ConstraintRef
impl Clone for ConstraintRef
Source§fn clone(&self) -> ConstraintRef
fn clone(&self) -> ConstraintRef
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 ConstraintRef
impl Debug for ConstraintRef
Source§impl Hash for ConstraintRef
impl Hash for ConstraintRef
Source§impl Ord for ConstraintRef
impl Ord for ConstraintRef
Source§fn cmp(&self, other: &ConstraintRef) -> Ordering
fn cmp(&self, other: &ConstraintRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConstraintRef
impl PartialEq for ConstraintRef
Source§fn eq(&self, other: &ConstraintRef) -> bool
fn eq(&self, other: &ConstraintRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConstraintRef
impl PartialOrd for ConstraintRef
impl Eq for ConstraintRef
impl StructuralPartialEq for ConstraintRef
Auto Trait Implementations§
impl Freeze for ConstraintRef
impl RefUnwindSafe for ConstraintRef
impl Send for ConstraintRef
impl Sync for ConstraintRef
impl Unpin for ConstraintRef
impl UnsafeUnpin for ConstraintRef
impl UnwindSafe for ConstraintRef
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