Skip to main content

Capabilities

Trait Capabilities 

Source
pub trait Capabilities {
    // Required methods
    fn is_color_disabled(&self) -> bool;
    fn is_emoji_disabled(&self) -> bool;
    fn prefers_reduced_motion(&self) -> bool;
}
Expand description

Trait for terminal display capabilities.

Implement this trait to provide custom terminal display behavior, useful for testing or alternative terminal implementations.

Required Methods§

Source

fn is_color_disabled(&self) -> bool

Returns true if colored output should be disabled.

Source

fn is_emoji_disabled(&self) -> bool

Returns true if emojis should be disabled.

Source

fn prefers_reduced_motion(&self) -> bool

Returns true if animations should be skipped.

Implementors§