Struct usvg::ScreenSize
source · [−]pub struct ScreenSize { /* private fields */ }
Expand description
A 2D screen size representation.
Width and height are guarantee to be > 0.
Implementations
sourceimpl ScreenSize
impl ScreenSize
sourcepub fn fit_view_box(&self, vb: &ViewBox) -> Self
pub fn fit_view_box(&self, vb: &ViewBox) -> Self
Fits size into a viewbox.
Trait Implementations
sourceimpl Clone for ScreenSize
impl Clone for ScreenSize
sourcefn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScreenSize
impl Debug for ScreenSize
sourceimpl Display for ScreenSize
impl Display for ScreenSize
sourceimpl PartialEq<ScreenSize> for ScreenSize
impl PartialEq<ScreenSize> for ScreenSize
sourcefn eq(&self, other: &ScreenSize) -> bool
fn eq(&self, other: &ScreenSize) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ScreenSize) -> bool
fn ne(&self, other: &ScreenSize) -> bool
This method tests for !=
.
impl Copy for ScreenSize
impl StructuralPartialEq for ScreenSize
Auto Trait Implementations
impl RefUnwindSafe for ScreenSize
impl Send for ScreenSize
impl Sync for ScreenSize
impl Unpin for ScreenSize
impl UnwindSafe for ScreenSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more