Skip to main content

Attributable

Trait Attributable 

Source
pub trait Attributable {
    // Required methods
    fn role(&self) -> Role;
    fn alias(&self) -> &str;
}
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

Implementations on Foreign Types§

Source§

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

Source§

fn role(&self) -> Role

Source§

fn alias(&self) -> &str

Source§

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

Source§

fn role(&self) -> Role

Source§

fn alias(&self) -> &str

Source§

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

Source§

fn role(&self) -> Role

Source§

fn alias(&self) -> &str

Implementors§