pub enum LayoutSize {
Fraction(f32),
Pixels(String),
}Expand description
A layout size: a number is a fraction of the picture’s shorter side, "<n>px" canvas pixels.
Variants§
Trait Implementations§
Source§impl Clone for LayoutSize
impl Clone for LayoutSize
Source§impl Debug for LayoutSize
impl Debug for LayoutSize
Source§impl<'de> Deserialize<'de> for LayoutSize
impl<'de> Deserialize<'de> for LayoutSize
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 PartialEq for LayoutSize
impl PartialEq for LayoutSize
Source§impl Serialize for LayoutSize
impl Serialize for LayoutSize
impl StructuralPartialEq for LayoutSize
Auto Trait Implementations§
impl Forget for LayoutSize
impl Freeze for LayoutSize
impl Move for LayoutSize
impl RefUnwindSafe for LayoutSize
impl Send for LayoutSize
impl Sync for LayoutSize
impl Unpin for LayoutSize
impl UnsafeUnpin for LayoutSize
impl UnwindSafe for LayoutSize
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