Skip to main content

Attributable

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§

Source

fn role(&self) -> Role

Source

fn alias(&self) -> &str

Provided Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<T: Attributable + ?Sized> Attributable for &T

Source§

impl<T: Attributable + ?Sized> Attributable for Arc<T>

Source§

impl<T: Attributable + ?Sized> Attributable for Box<T>

Implementors§