Trait Attributable
pub trait Attributable {
// Required methods
fn role(&self) -> Role;
fn alias(&self) -> &str;
// Provided method
fn tool_provenance(&self) -> ToolProvenance { ... }
}Expand description
Trait every alias-bound “thing” implements once next to its struct.
Required Methods§
Provided Methods§
Sourcefn tool_provenance(&self) -> ToolProvenance
fn tool_provenance(&self) -> ToolProvenance
Classifies whether a tool implementation is first-party native code or an extension. The conservative default prevents a new wrapper from inheriting native presentation privileges accidentally.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".