pub struct UnitOverlay {
pub metric_system: String,
pub attribute_units: BTreeMap<String, String>,
/* private fields */
}
Fields§
§metric_system: String
§attribute_units: BTreeMap<String, String>
Implementations§
Source§impl UnitOverlay
impl UnitOverlay
pub fn new(metric_system: String) -> Box<UnitOverlay>
Trait Implementations§
Source§impl Clone for UnitOverlay
impl Clone for UnitOverlay
Source§fn clone(&self) -> UnitOverlay
fn clone(&self) -> UnitOverlay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnitOverlay
impl Debug for UnitOverlay
Source§impl<'de> Deserialize<'de> for UnitOverlay
impl<'de> Deserialize<'de> for UnitOverlay
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
Source§impl Overlay for UnitOverlay
impl Overlay for UnitOverlay
fn as_any(&self) -> &dyn Any
fn capture_base(&mut self) -> &mut String
fn said(&self) -> &String
fn said_mut(&mut self) -> &mut String
fn overlay_type(&self) -> &String
fn metric_system(&self) -> Option<&String>
fn attributes(&self) -> Vec<&String>
fn add(&mut self, attribute: &Attribute)
fn language(&self) -> Option<&Language>
fn sign(&mut self, capture_base_sai: &str)
Auto Trait Implementations§
impl Freeze for UnitOverlay
impl RefUnwindSafe for UnitOverlay
impl Send for UnitOverlay
impl Sync for UnitOverlay
impl Unpin for UnitOverlay
impl UnwindSafe for UnitOverlay
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