pub struct Door { /* private fields */ }Expand description
The one value that says who is asking.
The two declared names are spellings rather than identities so a door is a const a consumer writes down once; the identities they stand for are derived on read, under the declared-name grammar at the two positions this compiler assigns.
Implementations§
Source§impl Door
impl Door
Sourcepub const fn declared(
prefix: &'static str,
grammar: &'static str,
entry: &'static str,
binding: CrateBinding,
producer: Producer,
) -> Self
pub const fn declared( prefix: &'static str, grammar: &'static str, entry: &'static str, binding: CrateBinding, producer: Producer, ) -> Self
One door, by the five facts a consumer declares once.
A const, so a consumer writes it down beside its derive and passes it by reference from then on.
Sourcepub const fn prefix(&self) -> &'static str
pub const fn prefix(&self) -> &'static str
The word every line composed through this door opens with.
Sourcepub fn grammar(&self) -> Identity<Contract>
pub fn grammar(&self) -> Identity<Contract>
The declaration grammar every diagnostic through this door expected to hold.
Derived over the declared name’s own bytes, rooted at Role::DeclaredName, at position zero — the seat this compiler assigns a door’s grammar.
Sourcepub fn entry(&self) -> Identity<ServiceEntry>
pub fn entry(&self) -> Identity<ServiceEntry>
The callable entry point every diagnostic through this door reproduces at.
Derived on Door::grammar’s terms, separated from it by its own subject and by its own content, at position one.
Sourcepub const fn binding(&self) -> CrateBinding
pub const fn binding(&self) -> CrateBinding
The crate a path rendered through this door is rooted at.