pub struct PublishedStamp { /* private fields */ }Expand description
The published stamp: the definition a publication road lands as visible source, and every landing it is landed for.
§Authority
What is emitted is declarative and calls nothing. The definition’s body is the caller’s self-contained token material and this compiler is named nowhere in it, which is why a stamp can stand in a crate that carries no edge back here.
§Bounds
Nothing here writes to disk: these are rendered trees and the record that pairs with them. The landings are as many as the record’s stamp declares sites, because the one road that builds them walks that stamp, and the exported name is read out of the record rather than kept beside it.
Implementations§
Source§impl PublishedStamp
impl PublishedStamp
Sourcepub fn rendered(
planned: &StampedPlan,
stamp: &Stamp,
ground: PublicationGround,
) -> Result<Self, StampError>
pub fn rendered( planned: &StampedPlan, stamp: &Stamp, ground: PublicationGround, ) -> Result<Self, StampError>
Render one published stamp over what the plan decided, what the caller declared, and why the lighter roads are insufficient.
The order is the road: the definition first, then one invocation per covered site, then the record — and the artifact only after all three, so no half-rendered publication unit exists.
§Errors
Returns StampError::TokensUnbounded where the definition, one invocation, or the tree either is assembled into outgrows the declared token magnitude.
Sourcepub const fn name(&self) -> &StampName
pub const fn name(&self) -> &StampName
The name the stamp is exported under, read out of the record.
Sourcepub const fn definition(&self) -> &GeneratedTree
pub const fn definition(&self) -> &GeneratedTree
The definition a publication road lands as visible source.
Sourcepub fn landings(&self) -> &[Landing]
pub fn landings(&self) -> &[Landing]
Every covered site’s landing, in the order the stamp declares them.
§Bounds
Exactly as many as the stamp declares sites, because the road that built them walked that stamp once.
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
How many landings this artifact carries; structurally at least one.
Sourcepub const fn record(&self) -> &PublicationRecord
pub const fn record(&self) -> &PublicationRecord
This side’s record of the publication act.
Trait Implementations§
Source§impl Clone for PublishedStamp
impl Clone for PublishedStamp
Source§fn clone(&self) -> PublishedStamp
fn clone(&self) -> PublishedStamp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more