pub trait DocAvailability {
// Required methods
fn tag(&self, tag: &DocCapability) -> Availability;
fn capability(&self, name: &str) -> Availability;
}Expand description
The reader’s side of documentation: which capabilities it could use.
Required Methods§
Sourcefn tag(&self, tag: &DocCapability) -> Availability
fn tag(&self, tag: &DocCapability) -> Availability
A capability a callable’s @capability tag names. known_context
gives the context the tag’s literal bindings fix ahead of the call.
Sourcefn capability(&self, name: &str) -> Availability
fn capability(&self, name: &str) -> Availability
A capability a Markdown region names, with nothing known of the call.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".