pub struct BooleanRanges { /* private fields */ }Expand description
Produces ranges spanning the regions where a boolean input is true.
The condition is evaluated point-wise at each aligned timestamp; the numeric series it compares are aligned against each other the same way arithmetic between them would be.
Implementations§
Source§impl BooleanRanges
impl BooleanRanges
Sourcepub fn builder() -> Builder<InputStage>
pub fn builder() -> Builder<InputStage>
Returns a new builder.
Source§impl BooleanRanges
impl BooleanRanges
Sourcepub fn new(input: BooleanSeries) -> Self
pub fn new(input: BooleanSeries) -> Self
Constructs a new instance of the type.
Sourcepub fn input(&self) -> &BooleanSeries
pub fn input(&self) -> &BooleanSeries
The condition whose true regions become ranges.
Sourcepub fn min_points(&self) -> Option<&IntegerConstant>
pub fn min_points(&self) -> Option<&IntegerConstant>
Minimum number of matching points. Defaults to 1.
Sourcepub fn min_duration(&self) -> Option<&Duration>
pub fn min_duration(&self) -> Option<&Duration>
Minimum matching duration. Defaults to one nanosecond.
Sourcepub fn range_start(&self) -> Option<&RangeStart>
pub fn range_start(&self) -> Option<&RangeStart>
Selects whether the output begins at the first match or after persistence is satisfied.
Trait Implementations§
Source§impl Clone for BooleanRanges
impl Clone for BooleanRanges
Source§fn clone(&self) -> BooleanRanges
fn clone(&self) -> BooleanRanges
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 BooleanRanges
impl Debug for BooleanRanges
Source§impl<'de> Deserialize<'de> for BooleanRanges
impl<'de> Deserialize<'de> for BooleanRanges
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
impl Eq for BooleanRanges
Source§impl From<BooleanRanges> for Builder<Complete>
impl From<BooleanRanges> for Builder<Complete>
Source§fn from(v: BooleanRanges) -> Self
fn from(v: BooleanRanges) -> Self
Converts to this type from the input type.
Source§impl Hash for BooleanRanges
impl Hash for BooleanRanges
Source§impl Ord for BooleanRanges
impl Ord for BooleanRanges
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BooleanRanges
impl PartialEq for BooleanRanges
Source§impl PartialOrd for BooleanRanges
impl PartialOrd for BooleanRanges
Auto Trait Implementations§
impl Freeze for BooleanRanges
impl RefUnwindSafe for BooleanRanges
impl Send for BooleanRanges
impl Sync for BooleanRanges
impl Unpin for BooleanRanges
impl UnsafeUnpin for BooleanRanges
impl UnwindSafe for BooleanRanges
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.