pub struct Size {
pub width: f32,
pub height: f32,
}Fields§
§width: f32§height: f32Implementations§
Trait Implementations§
impl Copy for Size
Source§impl SpringScalar for Size
impl SpringScalar for Size
Source§const DIMENSIONS: usize = 2
const DIMENSIONS: usize = 2
Number of animated dimensions (1..=4).
Source§fn from_dimensions(dimensions: [f32; 4]) -> Size
fn from_dimensions(dimensions: [f32; 4]) -> Size
Rebuilds a value from per-dimension floats (indices beyond
Self::DIMENSIONS are ignored).impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnsafeUnpin for Size
impl UnwindSafe for Size
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