pub enum MeasurementSystem {
Metric,
Us,
Uk,
}Expand description
The units of lengths, weights and volumes.
Variants§
Metric
Metres, kilograms and litres (metric).
Us
The US customary units: feet, miles, pounds and gallons (us).
Uk
The UK’s: metric, with miles for distances and pints (uk).
Implementations§
Trait Implementations§
Source§impl Clone for MeasurementSystem
impl Clone for MeasurementSystem
Source§fn clone(&self) -> MeasurementSystem
fn clone(&self) -> MeasurementSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeasurementSystem
Source§impl Debug for MeasurementSystem
impl Debug for MeasurementSystem
Source§impl Default for MeasurementSystem
impl Default for MeasurementSystem
Source§fn default() -> MeasurementSystem
fn default() -> MeasurementSystem
Returns the “default value” for a type. Read more
impl Eq for MeasurementSystem
Source§impl Hash for MeasurementSystem
impl Hash for MeasurementSystem
Source§impl HostValue for MeasurementSystem
impl HostValue for MeasurementSystem
Source§impl JsValue for MeasurementSystem
impl JsValue for MeasurementSystem
Source§impl PartialEq for MeasurementSystem
impl PartialEq for MeasurementSystem
Source§impl PropEnum for MeasurementSystem
impl PropEnum for MeasurementSystem
impl StructuralPartialEq for MeasurementSystem
Auto Trait Implementations§
impl Forget for MeasurementSystem
impl Freeze for MeasurementSystem
impl Move for MeasurementSystem
impl RefUnwindSafe for MeasurementSystem
impl Send for MeasurementSystem
impl Sync for MeasurementSystem
impl Unpin for MeasurementSystem
impl UnsafeUnpin for MeasurementSystem
impl UnwindSafe for MeasurementSystem
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> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.
fn classes(out: &mut Vec<&'static ClassDef>)
Source§impl<T> CallbackRet for Twhere
T: JsValue,
impl<T> CallbackRet for Twhere
T: JsValue,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.