pub struct DeclaredCargo { /* private fields */ }Expand description
One terminal’s proved declaration-site body, its parentage, and the matcher clauses it consumes.
Implementations§
Source§impl DeclaredCargo
impl DeclaredCargo
Sourcepub fn stamped_from<K: Kind>(
expansion: &Expansion<K>,
matched: GeneratedTree,
) -> Result<Self, AssemblyError>
pub fn stamped_from<K: Kind>( expansion: &Expansion<K>, matched: GeneratedTree, ) -> Result<Self, AssemblyError>
Reads a stamped body from the terminal which proved it.
§Errors
Returns AssemblyIssue::CargoNotTheSourcesOwn when no stamped body was proved.
Source§impl DeclaredCargo
impl DeclaredCargo
Sourcepub const fn source(&self) -> ClosedExpansionId
pub const fn source(&self) -> ClosedExpansionId
Reads the terminal that proved the stamped body.
Sourcepub const fn root(&self) -> Identity<CapturedDeclaration>
pub const fn root(&self) -> Identity<CapturedDeclaration>
Reads the declaration the proving terminal was planned over.
Sourcepub const fn matched(&self) -> &GeneratedTree
pub const fn matched(&self) -> &GeneratedTree
Reads matcher clauses.
Sourcepub const fn stamped(&self) -> &GeneratedTree
pub const fn stamped(&self) -> &GeneratedTree
Reads stamped material.
Trait Implementations§
Source§impl Clone for DeclaredCargo
impl Clone for DeclaredCargo
Source§fn clone(&self) -> DeclaredCargo
fn clone(&self) -> DeclaredCargo
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 DeclaredCargo
impl Debug for DeclaredCargo
impl Eq for DeclaredCargo
Source§impl Hash for DeclaredCargo
impl Hash for DeclaredCargo
Source§impl PartialEq for DeclaredCargo
impl PartialEq for DeclaredCargo
impl StructuralPartialEq for DeclaredCargo
Auto Trait Implementations§
impl Freeze for DeclaredCargo
impl RefUnwindSafe for DeclaredCargo
impl Send for DeclaredCargo
impl Sync for DeclaredCargo
impl Unpin for DeclaredCargo
impl UnsafeUnpin for DeclaredCargo
impl UnwindSafe for DeclaredCargo
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