Skip to main content

Intent

Trait Intent 

Source
pub trait Intent {
    // Required method
    fn token(self) -> &'static str;
}
Expand description

A colour intent this crate refers to but never resolves.

The string is the token name makeover publishes, so a renderer can look it up without this crate knowing what colour came back.

Required Methods§

Source

fn token(self) -> &'static str

The makeover intent token this resolves against.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§