Skip to main content

ActiveDirection

Trait ActiveDirection 

Source
pub trait ActiveDirection {
    // Required method
    fn layout_direction(&self) -> LayoutDirection;

    // Provided method
    fn is_rtl(&self) -> bool { ... }
}
Expand description

Reads the active reading direction from any context that dereferences to App, the way ActiveTheme reads the theme.

Required Methods§

Provided Methods§

Source

fn is_rtl(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ActiveDirection for App

Implementors§