pub struct Accumulator {
pub base: Measurement,
}Expand description
Accumulator represents an accumulated (counted) Measurement, e.g. an energy value.
Fields§
§base: MeasurementImplementations§
Source§impl Accumulator
impl Accumulator
pub fn from_block(b: &RdfBlock) -> Self
Trait Implementations§
Source§impl CimElement for Accumulator
impl CimElement for Accumulator
Source§impl Clone for Accumulator
impl Clone for Accumulator
Source§fn clone(&self) -> Accumulator
fn clone(&self) -> Accumulator
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 moreSource§impl Debug for Accumulator
impl Debug for Accumulator
Source§impl Default for Accumulator
impl Default for Accumulator
Source§fn default() -> Accumulator
fn default() -> Accumulator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Accumulator
impl<'de> Deserialize<'de> for Accumulator
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 Accumulator
impl RefUnwindSafe for Accumulator
impl Send for Accumulator
impl Sync for Accumulator
impl Unpin for Accumulator
impl UnsafeUnpin for Accumulator
impl UnwindSafe for Accumulator
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