pub struct ConstraintFragment { /* private fields */ }Expand description
One source constraint declaration.
Implementations§
Source§impl ConstraintFragment
impl ConstraintFragment
Sourcepub fn check(
name: SchemaName,
expression: SourceCheckExpr,
) -> ConstraintFragment
pub fn check( name: SchemaName, expression: SourceCheckExpr, ) -> ConstraintFragment
Construct one general source check.
Sourcepub fn targeted_rule(rule: TargetedRuleFragment) -> ConstraintFragment
pub fn targeted_rule(rule: TargetedRuleFragment) -> ConstraintFragment
Construct one source-bound targeted durable rule.
Sourcepub const fn source_key(&self) -> &ConstraintSourceKey
pub const fn source_key(&self) -> &ConstraintSourceKey
Borrow the typed proposal key derived from the current declaration.
Sourcepub const fn name(&self) -> &SchemaName
pub const fn name(&self) -> &SchemaName
Borrow the current constraint name.
Sourcepub const fn kind(&self) -> &ConstraintFragmentKind
pub const fn kind(&self) -> &ConstraintFragmentKind
Borrow the exact source constraint kind.
Trait Implementations§
Source§impl Clone for ConstraintFragment
impl Clone for ConstraintFragment
Source§fn clone(&self) -> ConstraintFragment
fn clone(&self) -> ConstraintFragment
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 ConstraintFragment
impl Debug for ConstraintFragment
impl Eq for ConstraintFragment
Source§impl PartialEq for ConstraintFragment
impl PartialEq for ConstraintFragment
impl StructuralPartialEq for ConstraintFragment
Auto Trait Implementations§
impl Freeze for ConstraintFragment
impl RefUnwindSafe for ConstraintFragment
impl Send for ConstraintFragment
impl Sync for ConstraintFragment
impl Unpin for ConstraintFragment
impl UnsafeUnpin for ConstraintFragment
impl UnwindSafe for ConstraintFragment
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.