pub struct Dim2 {
pub x: Dim,
pub y: Dim,
}Expand description
A size or position in 2D based on one or more measurements added together.
See Dim for more information on the units available and their meaning.
Fields§
§x: DimThe dimension on the X axis.
y: DimThe dimension on the Y axis.
Implementations§
Trait Implementations§
impl Copy for Dim2
impl StructuralPartialEq for Dim2
Auto Trait Implementations§
impl Freeze for Dim2
impl RefUnwindSafe for Dim2
impl Send for Dim2
impl Sync for Dim2
impl Unpin for Dim2
impl UnwindSafe for Dim2
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