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§
Sourcefn is_color_disabled(&self) -> bool
fn is_color_disabled(&self) -> bool
Returns true if colored output should be disabled.
Sourcefn is_emoji_disabled(&self) -> bool
fn is_emoji_disabled(&self) -> bool
Returns true if emojis should be disabled.
Sourcefn prefers_reduced_motion(&self) -> bool
fn prefers_reduced_motion(&self) -> bool
Returns true if animations should be skipped.