#[repr(C, u8)]pub enum ImageSize {
Manual {
width: u32,
height: u32,
},
Automatic,
}
Expand description
The size of an image asset
Variants§
Manual
A manual size in pixels
Automatic
The size will be automatically determined from the image source
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageSize
impl<'de> Deserialize<'de> for ImageSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for ImageSize
impl PartialOrd for ImageSize
Source§impl SerializeConst for ImageSize
impl SerializeConst for ImageSize
impl Copy for ImageSize
impl StructuralPartialEq for ImageSize
Auto Trait Implementations§
impl Freeze for ImageSize
impl RefUnwindSafe for ImageSize
impl Send for ImageSize
impl Sync for ImageSize
impl Unpin for ImageSize
impl UnwindSafe for ImageSize
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