pub struct RelationId(/* private fields */);Expand description
Index of a relation in its crate::Model.
Implementations§
Source§impl RelationId
impl RelationId
pub fn index(self) -> usize
Sourcepub fn from_index(index: u32) -> RelationId
pub fn from_index(index: u32) -> RelationId
Trait Implementations§
Source§impl Clone for RelationId
impl Clone for RelationId
impl Copy for RelationId
Source§impl Debug for RelationId
impl Debug for RelationId
impl Eq for RelationId
Source§impl Hash for RelationId
impl Hash for RelationId
Source§impl Ord for RelationId
impl Ord for RelationId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RelationId
impl PartialEq for RelationId
Source§impl PartialOrd for RelationId
impl PartialOrd for RelationId
impl StructuralPartialEq for RelationId
Auto Trait Implementations§
impl Forget for RelationId
impl Freeze for RelationId
impl Move for RelationId
impl RefUnwindSafe for RelationId
impl Send for RelationId
impl Sync for RelationId
impl Unpin for RelationId
impl UnsafeUnpin for RelationId
impl UnwindSafe for RelationId
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