#[repr(i32)]pub enum CalcMethodKind {
Undefined = 0,
PClass = 11,
MClass = 12,
Diff = 13,
}
Expand description
Calculation method (CalcMethodKind enumeration)
Variants§
Undefined = 0
Undefined enum value which can be used for Protobuf generation and be consistent with other technologies.
PClass = 11
All analogue values (i.e., all common attributes ‘i’ and ‘f’) meet the sampling and filtering characteristics specified in IEEE C37.118.1 for P-CLASS.
MClass = 12
All analogue values (i.e., all common attributes ‘i’ and ‘f’) meet the sampling and filtering characteristics specified in IEEE C37.118.1 for M-CLASS.
Diff = 13
All analogue values are [F(t+T)-F(t)] for a calculation interval T (in the same unit as the original entity). Note: The client can still calculate rate so: RATE = DIFF/T.
Implementations§
Trait Implementations§
Source§impl Clone for CalcMethodKind
impl Clone for CalcMethodKind
Source§fn clone(&self) -> CalcMethodKind
fn clone(&self) -> CalcMethodKind
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 CalcMethodKind
impl Debug for CalcMethodKind
Source§impl Default for CalcMethodKind
impl Default for CalcMethodKind
Source§fn default() -> CalcMethodKind
fn default() -> CalcMethodKind
Returns the “default value” for a type. Read more
Source§impl From<CalcMethodKind> for i32
impl From<CalcMethodKind> for i32
Source§fn from(value: CalcMethodKind) -> i32
fn from(value: CalcMethodKind) -> i32
Converts to this type from the input type.
Source§impl Hash for CalcMethodKind
impl Hash for CalcMethodKind
Source§impl Ord for CalcMethodKind
impl Ord for CalcMethodKind
Source§fn cmp(&self, other: &CalcMethodKind) -> Ordering
fn cmp(&self, other: &CalcMethodKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CalcMethodKind
impl PartialEq for CalcMethodKind
Source§impl PartialOrd for CalcMethodKind
impl PartialOrd for CalcMethodKind
impl Copy for CalcMethodKind
impl Eq for CalcMethodKind
impl StructuralPartialEq for CalcMethodKind
Auto Trait Implementations§
impl Freeze for CalcMethodKind
impl RefUnwindSafe for CalcMethodKind
impl Send for CalcMethodKind
impl Sync for CalcMethodKind
impl Unpin for CalcMethodKind
impl UnwindSafe for CalcMethodKind
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