Struct tokyodoves::RectangleSize
source · pub struct RectangleSize {
pub vsize: usize,
pub hsize: usize,
}
Expand description
A struct to represent the lengths of edges of Rectangle
.
Fields§
§vsize: usize
The length of the vertical edge
hsize: usize
The length of the horizontal edge
Trait Implementations§
source§impl Clone for RectangleSize
impl Clone for RectangleSize
source§fn clone(&self) -> RectangleSize
fn clone(&self) -> RectangleSize
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RectangleSize
impl Debug for RectangleSize
source§impl Hash for RectangleSize
impl Hash for RectangleSize
source§impl PartialEq for RectangleSize
impl PartialEq for RectangleSize
source§fn eq(&self, other: &RectangleSize) -> bool
fn eq(&self, other: &RectangleSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RectangleSize
impl Eq for RectangleSize
impl StructuralEq for RectangleSize
impl StructuralPartialEq for RectangleSize
Auto Trait Implementations§
impl RefUnwindSafe for RectangleSize
impl Send for RectangleSize
impl Sync for RectangleSize
impl Unpin for RectangleSize
impl UnwindSafe for RectangleSize
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more