pub struct ImageDimensions<T> {
pub width: T,
pub height: T,
}
Fields§
§width: T
§height: T
Trait Implementations§
Source§impl<T: Clone> Clone for ImageDimensions<T>
impl<T: Clone> Clone for ImageDimensions<T>
Source§fn clone(&self) -> ImageDimensions<T>
fn clone(&self) -> ImageDimensions<T>
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<T: Debug> Debug for ImageDimensions<T>
impl<T: Debug> Debug for ImageDimensions<T>
Source§impl<T: Default> Default for ImageDimensions<T>
impl<T: Default> Default for ImageDimensions<T>
Source§fn default() -> ImageDimensions<T>
fn default() -> ImageDimensions<T>
Returns the “default value” for a type. Read more
Source§impl<T: PartialEq> PartialEq for ImageDimensions<T>
impl<T: PartialEq> PartialEq for ImageDimensions<T>
impl<T: Copy> Copy for ImageDimensions<T>
impl<T: Eq> Eq for ImageDimensions<T>
impl<T> StructuralPartialEq for ImageDimensions<T>
Auto Trait Implementations§
impl<T> Freeze for ImageDimensions<T>where
T: Freeze,
impl<T> RefUnwindSafe for ImageDimensions<T>where
T: RefUnwindSafe,
impl<T> Send for ImageDimensions<T>where
T: Send,
impl<T> Sync for ImageDimensions<T>where
T: Sync,
impl<T> Unpin for ImageDimensions<T>where
T: Unpin,
impl<T> UnwindSafe for ImageDimensions<T>where
T: UnwindSafe,
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