pub struct Centimeter(/* private fields */);Implementations§
Source§impl Centimeter
impl Centimeter
pub fn new(value: CountBase) -> Centimeter
Trait Implementations§
Source§impl Clone for Centimeter
impl Clone for Centimeter
Source§fn clone(&self) -> Centimeter
fn clone(&self) -> Centimeter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Centimeter
impl Debug for Centimeter
Source§impl From<Centimeter> for Count
impl From<Centimeter> for Count
Source§fn from(value: Centimeter) -> Self
fn from(value: Centimeter) -> Self
Converts to this type from the input type.
Source§impl Hash for Centimeter
impl Hash for Centimeter
Source§impl Measure for Centimeter
impl Measure for Centimeter
Source§fn value(&self) -> &dyn ChineseFormat
fn value(&self) -> &dyn ChineseFormat
The value, convertible to Chinese.
Source§fn unit(&self) -> &dyn ChineseFormat
fn unit(&self) -> &dyn ChineseFormat
The unit of measurement, convertible to Chinese.
Source§impl Ord for Centimeter
impl Ord for Centimeter
Source§impl PartialEq for Centimeter
impl PartialEq for Centimeter
Source§impl PartialOrd for Centimeter
impl PartialOrd for Centimeter
impl Copy for Centimeter
impl Eq for Centimeter
impl StructuralPartialEq for Centimeter
Auto Trait Implementations§
impl Freeze for Centimeter
impl RefUnwindSafe for Centimeter
impl Send for Centimeter
impl Sync for Centimeter
impl Unpin for Centimeter
impl UnwindSafe for Centimeter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> ChineseFormat for Twhere
T: Measure,
impl<T> ChineseFormat for Twhere
T: Measure,
fn to_chinese(&self, variant: Variant) -> Chinese
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)