Skip to main content

Sizable

Trait Sizable 

Source
pub trait Sizable {
    // Required method
    fn set_size(&mut self, size: (u32, u32));

    // Provided method
    fn size(self, width_pct: u32, height_pct: u32) -> Self
       where Self: Sized { ... }
}

Required Methods§

Source

fn set_size(&mut self, size: (u32, u32))

Provided Methods§

Source

fn size(self, width_pct: u32, height_pct: u32) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§