pub struct RelationRef<'m> { /* private fields */ }Expand description
A relation of a Model with all its occurrence sites; cheap to copy.
Implementations§
Source§impl<'m> RelationRef<'m>
impl<'m> RelationRef<'m>
pub fn id(self) -> RelationId
pub fn kind(self) -> &'m RelationKind
pub fn from(self) -> EntityRef<'m>
pub fn to(self) -> EntityRef<'m>
pub fn provenance(self) -> Provenance
Sourcepub fn sites(self) -> &'m [Range]
pub fn sites(self) -> &'m [Range]
Occurrence sites, sorted, in the file of Self::from.
Sourcepub fn site_flags(self) -> &'m [SiteFlags]
pub fn site_flags(self) -> &'m [SiteFlags]
Flags of each site of Self::sites, same order.
Trait Implementations§
Source§impl<'m> Clone for RelationRef<'m>
impl<'m> Clone for RelationRef<'m>
impl<'m> Copy for RelationRef<'m>
Source§impl Debug for RelationRef<'_>
impl Debug for RelationRef<'_>
Auto Trait Implementations§
impl<'m> Forget for RelationRef<'m>
impl<'m> Freeze for RelationRef<'m>
impl<'m> Move for RelationRef<'m>
impl<'m> RefUnwindSafe for RelationRef<'m>
impl<'m> Send for RelationRef<'m>
impl<'m> Sync for RelationRef<'m>
impl<'m> Unpin for RelationRef<'m>
impl<'m> UnsafeUnpin for RelationRef<'m>where
&'m Model: UnsafeUnpin,
impl<'m> UnwindSafe for RelationRef<'m>where
&'m Model: UnwindSafe,
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