pub struct Size<T = f32> {
pub width: T,
pub height: T,
}
Expand description
An amount of space in 2 dimensions.
Fields
width: T
The width.
height: T
The height.
Implementations
Trait Implementations
impl<T> Copy for Size<T> where
T: Copy,
impl<T> StructuralPartialEq for Size<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Size<T> where
T: RefUnwindSafe,
impl<T> Send for Size<T> where
T: Send,
impl<T> Sync for Size<T> where
T: Sync,
impl<T> Unpin for Size<T> where
T: Unpin,
impl<T> UnwindSafe for Size<T> where
T: UnwindSafe,
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more