pub struct Length {
pub num: f64,
pub unit: LengthUnit,
}
Expand description
Representation of the <length>
type.
Fields§
§num: f64
§unit: LengthUnit
Implementations§
Trait Implementations§
Source§impl WriteBuffer for Length
impl WriteBuffer for Length
Source§fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to the
Vec<u8>
buffer using specified WriteOptions
.Source§fn write_buf(&self, buf: &mut Vec<u8>)
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to the
Vec<u8>
buffer using default WriteOptions
.Source§fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>where
Self: Sized,
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>where
Self: Sized,
Returns an object that implements
fmt::Display
using provided write options.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