pub struct UnitOverlay {
pub measurement_system: MeasurementSystem,
pub attribute_units: HashMap<String, MeasurementUnit>,
/* private fields */
}Fields§
§measurement_system: MeasurementSystem§attribute_units: HashMap<String, MeasurementUnit>Implementations§
Source§impl UnitOverlay
impl UnitOverlay
pub fn new(measurement_system: MeasurementSystem) -> UnitOverlay
pub fn measurement_system(&self) -> Option<&MeasurementSystem>
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(&self) -> &Option<SelfAddressingIdentifier>
fn set_capture_base(&mut self, said: &SelfAddressingIdentifier)
fn said(&self) -> &Option<SelfAddressingIdentifier>
fn overlay_type(&self) -> &OverlayType
fn attributes(&self) -> Vec<&String>
fn add(&mut self, attribute: &Attribute)
fn language(&self) -> Option<&Language>
fn fill_said(&mut self)
fn sign(&mut self, capture_base_sai: &SelfAddressingIdentifier)
Source§impl SAD for UnitOverlay
impl SAD for UnitOverlay
fn compute_digest(&mut self)
fn derivation_data(&self) -> Vec<u8> ⓘ
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