pub struct UniqueIndexHandle { /* private fields */ }Expand description
UniqueIndexHandle Validated handle to a unique index for an entity type.
Implementations§
Source§impl UniqueIndexHandle
impl UniqueIndexHandle
Sourcepub fn new<E: EntityKind>(index: &'static IndexSpec) -> Result<Self, Error>
pub fn new<E: EntityKind>(index: &'static IndexSpec) -> Result<Self, Error>
Wrap a unique index for the given entity type.
Sourcepub fn for_fields<E: EntityKind>(fields: &[&str]) -> Result<Self, Error>
pub fn for_fields<E: EntityKind>(fields: &[&str]) -> Result<Self, Error>
Resolve a unique index by its field list for the given entity type.
Trait Implementations§
Source§impl Clone for UniqueIndexHandle
impl Clone for UniqueIndexHandle
Source§fn clone(&self) -> UniqueIndexHandle
fn clone(&self) -> UniqueIndexHandle
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 moreimpl Copy for UniqueIndexHandle
Auto Trait Implementations§
impl Freeze for UniqueIndexHandle
impl RefUnwindSafe for UniqueIndexHandle
impl Send for UniqueIndexHandle
impl Sync for UniqueIndexHandle
impl Unpin for UniqueIndexHandle
impl UnwindSafe for UniqueIndexHandle
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