pub enum Size {
Physical(PhysicalSize),
Logical(LogicalSize),
}
Variants§
Physical(PhysicalSize)
Logical(LogicalSize)
Trait Implementations§
source§impl From<LogicalSize> for Size
impl From<LogicalSize> for Size
source§fn from(size: LogicalSize) -> Self
fn from(size: LogicalSize) -> Self
Converts to this type from the input type.
source§impl From<PhysicalSize> for Size
impl From<PhysicalSize> for Size
source§fn from(size: PhysicalSize) -> Self
fn from(size: PhysicalSize) -> Self
Converts to this type from the input type.
source§impl PartialEq for Size
impl PartialEq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl !Send for Size
impl !Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)