Skip to main content

EmptySizer

Trait EmptySizer 

Source
pub trait EmptySizer:
    Debug
    + PartialEq
    + 'static {
    // Required method
    fn size(&self, input_constraint: BoxConstraints) -> Size;
}

Required Methods§

Source

fn size(&self, input_constraint: BoxConstraints) -> Size

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl EmptySizer for Option<Size>

Source§

fn size(&self, input_constraint: BoxConstraints) -> Size

Implementors§