pub struct TemporalNodeKey {
pub variable: VariableId,
pub offset: i32,
}Expand description
Stable unfolded temporal node identity (serializable).
Fields§
§variable: VariableIdVariable.
offset: i32Offset relative to the analysis origin (may be negative for history).
Implementations§
Source§impl TemporalNodeKey
impl TemporalNodeKey
Sourcepub const fn contemporaneous(variable: VariableId) -> TemporalNodeKey
pub const fn contemporaneous(variable: VariableId) -> TemporalNodeKey
Contemporaneous node at the origin.
Sourcepub fn lagged(variable: VariableId, lag: Lag) -> Option<TemporalNodeKey>
pub fn lagged(variable: VariableId, lag: Lag) -> Option<TemporalNodeKey>
Node at t - lag when lag is non-negative and fits in i32.
Trait Implementations§
Source§impl Clone for TemporalNodeKey
impl Clone for TemporalNodeKey
Source§fn clone(&self) -> TemporalNodeKey
fn clone(&self) -> TemporalNodeKey
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 moreimpl Copy for TemporalNodeKey
Source§impl Debug for TemporalNodeKey
impl Debug for TemporalNodeKey
impl Eq for TemporalNodeKey
Source§impl Hash for TemporalNodeKey
impl Hash for TemporalNodeKey
Source§impl Ord for TemporalNodeKey
impl Ord for TemporalNodeKey
Source§fn cmp(&self, other: &TemporalNodeKey) -> Ordering
fn cmp(&self, other: &TemporalNodeKey) -> Ordering
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
Source§impl PartialEq for TemporalNodeKey
impl PartialEq for TemporalNodeKey
Source§impl PartialOrd for TemporalNodeKey
impl PartialOrd for TemporalNodeKey
impl StructuralPartialEq for TemporalNodeKey
Auto Trait Implementations§
impl Freeze for TemporalNodeKey
impl RefUnwindSafe for TemporalNodeKey
impl Send for TemporalNodeKey
impl Sync for TemporalNodeKey
impl Unpin for TemporalNodeKey
impl UnsafeUnpin for TemporalNodeKey
impl UnwindSafe for TemporalNodeKey
Blanket Implementations§
impl<T> Allocation for T
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