pub struct RegisteredShape {
pub iri: &'static str,
pub site_count: usize,
pub constraints: &'static [ConstraintRef],
pub cycle_size: u64,
}Expand description
ADR-057: a registered shape entry. iri is the shape’s
content-addressed identifier per ADR-017; site_count,
constraints, and cycle_size mirror the corresponding
ConstrainedTypeShape associated items so ψ_1’s resolver
can walk the referenced shape’s constraint set without
touching the original trait impl.
Fields§
§iri: &'static strContent-addressed IRI of the shape (per ADR-017).
site_count: usizeMirror of <T as ConstrainedTypeShape>::SITE_COUNT.
constraints: &'static [ConstraintRef]Mirror of <T as ConstrainedTypeShape>::CONSTRAINTS.
cycle_size: u64Mirror of <T as ConstrainedTypeShape>::CYCLE_SIZE.
Trait Implementations§
Source§impl Clone for RegisteredShape
impl Clone for RegisteredShape
Source§fn clone(&self) -> RegisteredShape
fn clone(&self) -> RegisteredShape
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 RegisteredShape
impl Debug for RegisteredShape
impl Copy for RegisteredShape
Auto Trait Implementations§
impl Freeze for RegisteredShape
impl RefUnwindSafe for RegisteredShape
impl Send for RegisteredShape
impl Sync for RegisteredShape
impl Unpin for RegisteredShape
impl UnsafeUnpin for RegisteredShape
impl UnwindSafe for RegisteredShape
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