pub struct PlayingProjection { /* private fields */ }Expand description
Effective per-player metadata keyed independently from shared role tokens.
Implementations§
Source§impl PlayingProjection
impl PlayingProjection
Sourcepub fn new(
id: PlaysFactId,
role: RoleId,
multiplicity: ProjectedMultiplicity,
annotations: BTreeMap<AnnotationFactId, ProjectedAnnotation>,
) -> Result<Self, Diagnostic>
pub fn new( id: PlaysFactId, role: RoleId, multiplicity: ProjectedMultiplicity, annotations: BTreeMap<AnnotationFactId, ProjectedAnnotation>, ) -> Result<Self, Diagnostic>
Construct metadata for one exact effective playing edge.
Sourcepub fn with_target_name(self, target_name: TargetIdentifier) -> Self
pub fn with_target_name(self, target_name: TargetIdentifier) -> Self
Attach the owner-branded emitted plays-token name.
Sourcepub const fn id(&self) -> &PlaysFactId
pub const fn id(&self) -> &PlaysFactId
Return the exact playing identity.
Sourcepub const fn target_name(&self) -> Option<&TargetIdentifier>
pub const fn target_name(&self) -> Option<&TargetIdentifier>
Return the emitted owner-branded plays-token name when projected.
Sourcepub const fn multiplicity(&self) -> ProjectedMultiplicity
pub const fn multiplicity(&self) -> ProjectedMultiplicity
Return the player-edge cardinality metadata.
Sourcepub const fn annotations(
&self,
) -> &BTreeMap<AnnotationFactId, ProjectedAnnotation>
pub const fn annotations( &self, ) -> &BTreeMap<AnnotationFactId, ProjectedAnnotation>
Return effective per-edge annotations.
Trait Implementations§
Source§impl Clone for PlayingProjection
impl Clone for PlayingProjection
Source§fn clone(&self) -> PlayingProjection
fn clone(&self) -> PlayingProjection
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 moreSource§impl Debug for PlayingProjection
impl Debug for PlayingProjection
impl Eq for PlayingProjection
Source§impl PartialEq for PlayingProjection
impl PartialEq for PlayingProjection
Source§impl Serialize for PlayingProjection
impl Serialize for PlayingProjection
impl StructuralPartialEq for PlayingProjection
Auto Trait Implementations§
impl Freeze for PlayingProjection
impl RefUnwindSafe for PlayingProjection
impl Send for PlayingProjection
impl Sync for PlayingProjection
impl Unpin for PlayingProjection
impl UnsafeUnpin for PlayingProjection
impl UnwindSafe for PlayingProjection
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