Skip to main content

HasModifiers

Trait HasModifiers 

Source
pub trait HasModifiers {
    // Required method
    fn modifiers(&self) -> &HashSet<Modifier>;
}
Expand description

A trait that represents a type that has modifiers.

Required Methods§

Source

fn modifiers(&self) -> &HashSet<Modifier>

Returns the modifiers of the implementor (most likely a Chord).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§