pub struct Dimension { /* private fields */ }Expand description
Seven SI base-dimension exponents in Annex E declaration order.
Implementations§
Source§impl Dimension
impl Dimension
Sourcepub fn to_element(&self) -> Element
pub fn to_element(&self) -> Element
Encodes as a dt:Dimension element (library member, not a global root).
Source§impl Dimension
impl Dimension
Sourcepub fn from_element(element: &Element) -> Result<Self, CodecError>
pub fn from_element(element: &Element) -> Result<Self, CodecError>
Decodes DimensionType content (any element name).
Trait Implementations§
impl Eq for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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