pub struct ReadRoleProjection { /* private fields */ }Expand description
One active role field in a complete read facet.
Implementations§
Source§impl ReadRoleProjection
impl ReadRoleProjection
Sourcepub fn new(
role: RoleId,
players: BTreeSet<ProjectedModelUse>,
multiplicity: ProjectedMultiplicity,
) -> Result<Self, Diagnostic>
pub fn new( role: RoleId, players: BTreeSet<ProjectedModelUse>, multiplicity: ProjectedMultiplicity, ) -> Result<Self, Diagnostic>
Construct one complete-read role field.
Sourcepub const fn players(&self) -> &BTreeSet<ProjectedModelUse>
pub const fn players(&self) -> &BTreeSet<ProjectedModelUse>
Return exact read player forms.
Sourcepub const fn multiplicity(&self) -> ProjectedMultiplicity
pub const fn multiplicity(&self) -> ProjectedMultiplicity
Return read container shape.
Trait Implementations§
Source§impl Clone for ReadRoleProjection
impl Clone for ReadRoleProjection
Source§impl Debug for ReadRoleProjection
impl Debug for ReadRoleProjection
impl Eq for ReadRoleProjection
Source§impl PartialEq for ReadRoleProjection
impl PartialEq for ReadRoleProjection
Source§impl Serialize for ReadRoleProjection
impl Serialize for ReadRoleProjection
impl StructuralPartialEq for ReadRoleProjection
Auto Trait Implementations§
impl Freeze for ReadRoleProjection
impl RefUnwindSafe for ReadRoleProjection
impl Send for ReadRoleProjection
impl Sync for ReadRoleProjection
impl Unpin for ReadRoleProjection
impl UnsafeUnpin for ReadRoleProjection
impl UnwindSafe for ReadRoleProjection
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