Enum spreadsheet_ods::style::units::Length
source · pub enum Length {
Default,
Cm(f64),
Mm(f64),
In(f64),
Pt(f64),
Pc(f64),
Em(f64),
}
Expand description
A (positive or negative) length, consisting of magnitude and unit, in conformance with the Units of Measure defined in §5.9.13 of XSL.
Variants§
Default
Unspecified length, the actual value is some default or whatever.
Cm(f64)
cm
Mm(f64)
mm
In(f64)
inch
Pt(f64)
typographic points
Pc(f64)
pica
Em(f64)
em
Implementations§
Trait Implementations§
source§impl From<Length> for LengthPercent
impl From<Length> for LengthPercent
source§impl From<Length> for LetterSpacing
impl From<Length> for LetterSpacing
source§impl From<Length> for LineHeight
impl From<Length> for LineHeight
source§impl GetSize for Length
impl GetSize for Length
source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
source§impl PartialEq for Length
impl PartialEq for Length
impl Copy for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)