Trait RadiusSemantic

Source
pub trait RadiusSemantic:
    Sealed
    + Debug
    + Clone
    + Copy
    + 'static {
    const DEFAULT_PIXELS: u16;

    // Required method
    fn name() -> &'static str;
}
Expand description

Marker trait for all radius semantics.

This is the base trait that all radius types implement. It is sealed, meaning only types in this crate can implement it.

Required Associated Constants§

Source

const DEFAULT_PIXELS: u16

The default pixel value for this radius.

Required Methods§

Source

fn name() -> &'static str

Returns the semantic name of this radius.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§