Skip to main content

Side

Trait Side 

Source
pub trait Side {
    // Required methods
    fn start() -> Self;
    fn is_start(&self) -> bool;
}
Expand description

Represents a side, either horizontal or vertical, of a CSS position.

Required Methods§

Source

fn start() -> Self

Returns the start side.

Source

fn is_start(&self) -> bool

Returns whether this side is the start side.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§