pub struct CompleteReadProjection { /* private fields */ }Expand description
The complete materialized read facet.
Implementations§
Source§impl CompleteReadProjection
impl CompleteReadProjection
Sourcepub fn new(
fields: Vec<ReadFieldProjection>,
roles: BTreeMap<RoleId, ReadRoleProjection>,
nominal_upcasts: Vec<TypeId>,
) -> Result<Self, Diagnostic>
pub fn new( fields: Vec<ReadFieldProjection>, roles: BTreeMap<RoleId, ReadRoleProjection>, nominal_upcasts: Vec<TypeId>, ) -> Result<Self, Diagnostic>
Construct one complete-read shape.
Sourcepub fn with_role_upcasts(
self,
role_upcasts: BTreeMap<RoleId, Vec<RoleId>>,
) -> Result<Self, Diagnostic>
pub fn with_role_upcasts( self, role_upcasts: BTreeMap<RoleId, Vec<RoleId>>, ) -> Result<Self, Diagnostic>
Attach active-child-role to ordered ancestor-role read mappings.
Sourcepub fn fields(&self) -> &[ReadFieldProjection]
pub fn fields(&self) -> &[ReadFieldProjection]
Return owned-attribute fields in semantic order.
Sourcepub const fn roles(&self) -> &BTreeMap<RoleId, ReadRoleProjection>
pub const fn roles(&self) -> &BTreeMap<RoleId, ReadRoleProjection>
Return active role fields.
Sourcepub fn nominal_upcasts(&self) -> &[TypeId]
pub fn nominal_upcasts(&self) -> &[TypeId]
Return legal nominal upcast model identities, nearest first.
Trait Implementations§
Source§impl Clone for CompleteReadProjection
impl Clone for CompleteReadProjection
Source§impl Debug for CompleteReadProjection
impl Debug for CompleteReadProjection
impl Eq for CompleteReadProjection
Source§impl PartialEq for CompleteReadProjection
impl PartialEq for CompleteReadProjection
Source§impl Serialize for CompleteReadProjection
impl Serialize for CompleteReadProjection
impl StructuralPartialEq for CompleteReadProjection
Auto Trait Implementations§
impl Freeze for CompleteReadProjection
impl RefUnwindSafe for CompleteReadProjection
impl Send for CompleteReadProjection
impl Sync for CompleteReadProjection
impl Unpin for CompleteReadProjection
impl UnsafeUnpin for CompleteReadProjection
impl UnwindSafe for CompleteReadProjection
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