pub struct ReferentList<PerspectiveType> {
pub referents: Vec1<Referent>,
pub perspective: PerspectiveType,
}Expand description
A list of referents with a perspective.
Fields§
§referents: Vec1<Referent>The referents of this referent list.
perspective: PerspectiveTypeThe perspective of this referent list.
Trait Implementations§
Source§impl<PerspectiveType: Clone> Clone for ReferentList<PerspectiveType>
impl<PerspectiveType: Clone> Clone for ReferentList<PerspectiveType>
Source§fn clone(&self) -> ReferentList<PerspectiveType>
fn clone(&self) -> ReferentList<PerspectiveType>
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 moreSource§impl<PerspectiveType: Debug> Debug for ReferentList<PerspectiveType>
impl<PerspectiveType: Debug> Debug for ReferentList<PerspectiveType>
Source§impl From<ReferentList<Perspective>> for GeneralReferent
impl From<ReferentList<Perspective>> for GeneralReferent
Source§fn from(value: NormalReferentList) -> Self
fn from(value: NormalReferentList) -> Self
Converts to this type from the input type.
Source§impl<PerspectiveType> Gloss for ReferentList<PerspectiveType>
impl<PerspectiveType> Gloss for ReferentList<PerspectiveType>
Source§impl<PerspectiveType: Hash> Hash for ReferentList<PerspectiveType>
impl<PerspectiveType: Hash> Hash for ReferentList<PerspectiveType>
Source§impl<PerspectiveType: Ord> Ord for ReferentList<PerspectiveType>
impl<PerspectiveType: Ord> Ord for ReferentList<PerspectiveType>
Source§fn cmp(&self, other: &ReferentList<PerspectiveType>) -> Ordering
fn cmp(&self, other: &ReferentList<PerspectiveType>) -> Ordering
1.21.0 · 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
Source§impl<PerspectiveType: PartialEq> PartialEq for ReferentList<PerspectiveType>
impl<PerspectiveType: PartialEq> PartialEq for ReferentList<PerspectiveType>
Source§fn eq(&self, other: &ReferentList<PerspectiveType>) -> bool
fn eq(&self, other: &ReferentList<PerspectiveType>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<PerspectiveType: PartialOrd> PartialOrd for ReferentList<PerspectiveType>
impl<PerspectiveType: PartialOrd> PartialOrd for ReferentList<PerspectiveType>
Source§impl TryAsSpecific<ReferentList<Perspective>> for GeneralReferent
impl TryAsSpecific<ReferentList<Perspective>> for GeneralReferent
Source§fn try_as_specific(self) -> Option<NormalReferentList>
fn try_as_specific(self) -> Option<NormalReferentList>
Converts
self into a more specific version, returning None if it isn’t possible.impl<PerspectiveType: Eq> Eq for ReferentList<PerspectiveType>
impl<PerspectiveType> StructuralPartialEq for ReferentList<PerspectiveType>
Auto Trait Implementations§
impl<PerspectiveType> Freeze for ReferentList<PerspectiveType>where
PerspectiveType: Freeze,
impl<PerspectiveType> RefUnwindSafe for ReferentList<PerspectiveType>where
PerspectiveType: RefUnwindSafe,
impl<PerspectiveType> Send for ReferentList<PerspectiveType>where
PerspectiveType: Send,
impl<PerspectiveType> Sync for ReferentList<PerspectiveType>where
PerspectiveType: Sync,
impl<PerspectiveType> Unpin for ReferentList<PerspectiveType>where
PerspectiveType: Unpin,
impl<PerspectiveType> UnwindSafe for ReferentList<PerspectiveType>where
PerspectiveType: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, This> TryAsGeneral<T> for This
impl<T, This> TryAsGeneral<T> for This
Source§fn try_as_general(self) -> Option<T>
fn try_as_general(self) -> Option<T>
Converts
self into a more general version, returning None if it isn’t possible.