pub struct Extent2D {
pub width: u32,
pub height: u32,
}Expand description
A 2D extent in pixels.
Fields§
§width: u32§height: u32Implementations§
Trait Implementations§
impl Copy for Extent2D
impl Eq for Extent2D
impl StructuralPartialEq for Extent2D
Auto Trait Implementations§
impl Forget for Extent2D
impl Freeze for Extent2D
impl Move for Extent2D
impl RefUnwindSafe for Extent2D
impl Send for Extent2D
impl Sync for Extent2D
impl Unpin for Extent2D
impl UnsafeUnpin for Extent2D
impl UnwindSafe for Extent2D
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more