pub enum PrimaryKeyModelFields {
Scalar(&'static FieldModel),
Ordered(&'static [&'static FieldModel]),
}Expand description
PrimaryKeyModelFields
Borrowed primary-key field list without allocating on hot metadata paths.
Variants§
Scalar(&'static FieldModel)
Ordered(&'static [&'static FieldModel])
Implementations§
Source§impl PrimaryKeyModelFields
impl PrimaryKeyModelFields
Sourcepub fn get(self, index: usize) -> Option<&'static FieldModel>
pub fn get(self, index: usize) -> Option<&'static FieldModel>
Return the field at index.
Sourcepub const fn iter(self) -> PrimaryKeyModelFieldIter ⓘ
pub const fn iter(self) -> PrimaryKeyModelFieldIter ⓘ
Iterate over ordered primary-key fields.
Trait Implementations§
Source§impl Clone for PrimaryKeyModelFields
impl Clone for PrimaryKeyModelFields
Source§fn clone(&self) -> PrimaryKeyModelFields
fn clone(&self) -> PrimaryKeyModelFields
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 moreimpl Copy for PrimaryKeyModelFields
Auto Trait Implementations§
impl Freeze for PrimaryKeyModelFields
impl RefUnwindSafe for PrimaryKeyModelFields
impl Send for PrimaryKeyModelFields
impl Sync for PrimaryKeyModelFields
impl Unpin for PrimaryKeyModelFields
impl UnsafeUnpin for PrimaryKeyModelFields
impl UnwindSafe for PrimaryKeyModelFields
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