pub enum Def {
BaseUnit {
long_name: Option<String>,
},
Prefix {
expr: ExprString,
is_long: bool,
},
Unit {
expr: ExprString,
},
Quantity {
expr: ExprString,
},
Substance {
symbol: Option<String>,
properties: Vec<Property>,
},
Category {
display_name: String,
},
Error {
message: String,
},
}
Variants§
BaseUnit
Prefix
Unit
Fields
§
expr: ExprString
Quantity
Fields
§
expr: ExprString
Substance
Category
Error
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Def
impl<'de> Deserialize<'de> for Def
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Def
impl RefUnwindSafe for Def
impl Send for Def
impl Sync for Def
impl Unpin for Def
impl UnwindSafe for Def
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