pub struct Length {
pub number: f64,
pub unit: LengthUnit,
}
Expand description
Representation of the <length>
type.
Fields§
§number: f64
§unit: LengthUnit
Implementations§
Trait Implementations§
source§impl From<DirectionalPosition> for Length
impl From<DirectionalPosition> for Length
source§fn from(value: DirectionalPosition) -> Self
fn from(value: DirectionalPosition) -> Self
Converts to this type from the input type.
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§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
)