pub trait HasRemSize {
// Required method
fn rem_size(&self) -> Pixels;
}Expand description
A source of the current rem size, used to convert Pixels to Rems.
Implementing this for the window type lets Rems::from_pixels live in this
crate without depending on the rest of GPUI.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".