pub struct Size {
pub width: f32,
pub height: f32,
}
Fields§
§width: f32
§height: f32
Implementations§
source§impl Size
impl Size
pub const FOUR_A0: Self = _
pub const TWO_A0: Self = _
pub const A0: Self = _
pub const A1: Self = _
pub const A2: Self = _
pub const A3: Self = _
pub const A4: Self = _
pub const A5: Self = _
pub const A6: Self = _
pub const A7: Self = _
pub const A8: Self = _
pub const A9: Self = _
pub const A10: Self = _
pub const B0: Self = _
pub const B1: Self = _
pub const B2: Self = _
pub const B3: Self = _
pub const B4: Self = _
pub const B5: Self = _
pub const B6: Self = _
pub const B7: Self = _
pub const B8: Self = _
pub const B9: Self = _
pub const B10: Self = _
pub const C0: Self = _
pub const C1: Self = _
pub const C2: Self = _
pub const C3: Self = _
pub const C4: Self = _
pub const C5: Self = _
pub const C6: Self = _
pub const C7: Self = _
pub const C8: Self = _
pub const C9: Self = _
pub const C10: Self = _
pub const CARD_4X6: Self = _
pub const CARD_5X7: Self = _
pub const COMMERCIAL: Self = _
pub const EXECUTIVE: Self = _
pub const INVOICE: Self = _
pub const LEDGER: Self = _
pub const LEGAL: Self = _
pub const LEGAL_13: Self = _
pub const LETTER: Self = _
pub const MONARCH: Self = _
pub const TABLOID_EXTRA: Self = _
pub const fn new(width: f32, height: f32) -> Self
pub fn to_rect(&self) -> Rect
Trait Implementations§
source§impl PartialEq for Size
impl PartialEq for Size
impl Copy 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