Struct usvg::ScreenRect [−][src]
pub struct ScreenRect { /* fields omitted */ }
Expand description
A 2D screen rect representation.
Width and height are guarantee to be > 0.
Implementations
Creates a new Rect
from values.
Returns rect’s size.
Translates the rect to the specified position.
Fits the current rect into the specified bounds.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ScreenRect
impl Send for ScreenRect
impl Sync for ScreenRect
impl Unpin for ScreenRect
impl UnwindSafe for ScreenRect
Blanket Implementations
Mutably borrows from an owned value. Read more