#[non_exhaustive]pub enum ResolutionKind {
Alias,
Default,
Lookup,
Method,
Chain,
}Expand description
The kind of one resolution of a short call (16.7, spec-0.5.0).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Alias
alias: a bare name resolved through the mesh’s alias map.
Default
default: an unbound argument took its "default": "asof".
Lookup
lookup: a label resolved to a key through the class’s lookup method; the resolution
carries asof, the instant the lookup cell was read as of.
Method
method: a method call resolved to the method’s function.
Chain
chain (5.8, 16.7, the classes round): a link of a chained request, N(k).m(a).n(b): the method
after the first, called on the key the previous one returned. The resolution carries asof, the
instant the cell of the link was read as of, as a lookup does.
Implementations§
Source§impl ResolutionKind
impl ResolutionKind
Sourcepub const ALL: &'static [ResolutionKind]
pub const ALL: &'static [ResolutionKind]
Every kind, in the order of 5.5: alias, default, lookup, method, then chain.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The kind as written: alias, default, lookup, method or chain.
Sourcepub fn from_name(text: &str) -> Option<ResolutionKind>
pub fn from_name(text: &str) -> Option<ResolutionKind>
Looks a kind up by its text; None for anything else.