pub struct IndexedConstraint<K = IndexKey> { /* private fields */ }Expand description
Owned handle returned by an indexed single-relation constraint! declaration.
IDs refer to rows of the originating model.
get supports integer, string, and tuple keys, including sparse domains.
Implementations§
Source§impl<K> IndexedConstraint<K>
impl<K> IndexedConstraint<K>
Source§impl<K: FromIndexKey> IndexedConstraint<K>
impl<K: FromIndexKey> IndexedConstraint<K>
Sourcepub fn iter(&self) -> impl Iterator<Item = (K, ConstraintHandle)> + '_
pub fn iter(&self) -> impl Iterator<Item = (K, ConstraintHandle)> + '_
Iterate typed keys and copied IDs in the original domain order.
Trait Implementations§
Source§impl<K> Clone for IndexedConstraint<K>
impl<K> Clone for IndexedConstraint<K>
Auto Trait Implementations§
impl<K> Freeze for IndexedConstraint<K>
impl<K> RefUnwindSafe for IndexedConstraint<K>
impl<K> Send for IndexedConstraint<K>
impl<K> Sync for IndexedConstraint<K>
impl<K> Unpin for IndexedConstraint<K>
impl<K> UnsafeUnpin for IndexedConstraint<K>
impl<K> UnwindSafe for IndexedConstraint<K>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more