pub struct DirectSubProjection { /* private fields */ }Expand description
The exact direct subtype declaration retained by every runtime projection.
Implementations§
Source§impl DirectSubProjection
impl DirectSubProjection
Sourcepub fn new(
id: SubFactId,
origin: SchemaFactId,
annotations: BTreeMap<AnnotationFactId, ProjectedAnnotation>,
) -> Result<Self, Diagnostic>
pub fn new( id: SubFactId, origin: SchemaFactId, annotations: BTreeMap<AnnotationFactId, ProjectedAnnotation>, ) -> Result<Self, Diagnostic>
Construct one direct subtype declaration from resolved schema values.
Sourcepub const fn origin(&self) -> &SchemaFactId
pub const fn origin(&self) -> &SchemaFactId
Return the direct declaration origin.
Sourcepub const fn annotations(
&self,
) -> &BTreeMap<AnnotationFactId, ProjectedAnnotation>
pub const fn annotations( &self, ) -> &BTreeMap<AnnotationFactId, ProjectedAnnotation>
Return annotations attached to this exact subtype edge.
Trait Implementations§
Source§impl Clone for DirectSubProjection
impl Clone for DirectSubProjection
Source§fn clone(&self) -> DirectSubProjection
fn clone(&self) -> DirectSubProjection
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 DirectSubProjection
impl Debug for DirectSubProjection
impl Eq for DirectSubProjection
Source§impl PartialEq for DirectSubProjection
impl PartialEq for DirectSubProjection
Source§impl Serialize for DirectSubProjection
impl Serialize for DirectSubProjection
impl StructuralPartialEq for DirectSubProjection
Auto Trait Implementations§
impl Freeze for DirectSubProjection
impl RefUnwindSafe for DirectSubProjection
impl Send for DirectSubProjection
impl Sync for DirectSubProjection
impl Unpin for DirectSubProjection
impl UnsafeUnpin for DirectSubProjection
impl UnwindSafe for DirectSubProjection
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