pub struct ContentBinding<K: Kind> { /* private fields */ }Expand description
One kind’s content bound to the exact captured declaration and owner-qualified kind it was presented under.
Holding one proves the compiler derived the content commitment from all three together. It claims nothing about whether the content is a correct semantic reading of the captured declaration; that is the declaring adapter’s authority.
Implementations§
Source§impl<K: Kind> ContentBinding<K>
impl<K: Kind> ContentBinding<K>
Sourcepub const fn capture(&self) -> Identity<CapturedDeclaration>
pub const fn capture(&self) -> Identity<CapturedDeclaration>
The captured declaration this content was bound under.
Sourcepub const fn kind(&self) -> Identity<ProjectionKind>
pub const fn kind(&self) -> Identity<ProjectionKind>
The owner-qualified kind this content was bound as.
Sourcepub const fn commitment(&self) -> Identity<ProjectionContent>
pub const fn commitment(&self) -> Identity<ProjectionContent>
The commitment over this content’s canonical bytes.
Trait Implementations§
Source§impl<K: Clone + Kind> Clone for ContentBinding<K>
impl<K: Clone + Kind> Clone for ContentBinding<K>
Source§fn clone(&self) -> ContentBinding<K>
fn clone(&self) -> ContentBinding<K>
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 moreimpl<K: Eq + Kind> Eq for ContentBinding<K>
impl<K: PartialEq + Kind> StructuralPartialEq for ContentBinding<K>
Auto Trait Implementations§
impl<K> Freeze for ContentBinding<K>
impl<K> RefUnwindSafe for ContentBinding<K>
impl<K> Send for ContentBinding<K>
impl<K> Sync for ContentBinding<K>
impl<K> Unpin for ContentBinding<K>
impl<K> UnsafeUnpin for ContentBinding<K>
impl<K> UnwindSafe for ContentBinding<K>
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