pub struct Referrer {
pub from: EntityId,
pub slot: usize,
}Expand description
One reference to a target entity.
Fields§
§from: EntityIdThe entity holding the reference.
slot: usizeWhich top-level attribute slot of from the reference sits in.
Nested references inside a List or Typed wrapper report the index of
the outermost attribute, because that is the slot the schema names.
Trait Implementations§
impl Copy for Referrer
impl Eq for Referrer
Source§impl Ord for Referrer
impl Ord for Referrer
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 PartialOrd for Referrer
impl PartialOrd for Referrer
impl StructuralPartialEq for Referrer
Auto Trait Implementations§
impl Freeze for Referrer
impl RefUnwindSafe for Referrer
impl Send for Referrer
impl Sync for Referrer
impl Unpin for Referrer
impl UnsafeUnpin for Referrer
impl UnwindSafe for Referrer
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