Enum rtlola_hir::hir::ConcretePacingType
source · pub enum ConcretePacingType {
Event(ActivationCondition),
FixedPeriodic(UOM_Frequency),
Periodic,
Constant,
}
Expand description
The external definition of a pacing type.
Variants§
Event(ActivationCondition)
The stream / expression can be evaluated whenever the activation condition is satisfied.
FixedPeriodic(UOM_Frequency)
The stream / expression can be evaluated with a fixed frequency.
Periodic
The stream / expression can be evaluated with any frequency.
Constant
The stream / expression can always be evaluated.
Implementations§
source§impl ConcretePacingType
impl ConcretePacingType
sourcepub fn to_pretty_string(&self, names: &HashMap<StreamReference, &str>) -> String
pub fn to_pretty_string(&self, names: &HashMap<StreamReference, &str>) -> String
Pretty print function for ConcretePacingType.
source§impl ConcretePacingType
impl ConcretePacingType
sourcepub fn is_periodic(&self) -> bool
pub fn is_periodic(&self) -> bool
Returns true if the type is fixed-periodic
sourcepub fn is_event_based(&self) -> bool
pub fn is_event_based(&self) -> bool
Returns true if the type is event-based
sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Returns true if the type is constant
Trait Implementations§
source§impl Clone for ConcretePacingType
impl Clone for ConcretePacingType
source§fn clone(&self) -> ConcretePacingType
fn clone(&self) -> ConcretePacingType
Returns a copy 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 ConcretePacingType
impl Debug for ConcretePacingType
source§impl PartialEq<ConcretePacingType> for ConcretePacingType
impl PartialEq<ConcretePacingType> for ConcretePacingType
source§fn eq(&self, other: &ConcretePacingType) -> bool
fn eq(&self, other: &ConcretePacingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConcretePacingType
impl StructuralEq for ConcretePacingType
impl StructuralPartialEq for ConcretePacingType
Auto Trait Implementations§
impl RefUnwindSafe for ConcretePacingType
impl Send for ConcretePacingType
impl Sync for ConcretePacingType
impl Unpin for ConcretePacingType
impl UnwindSafe for ConcretePacingType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.