pub struct TemporalEvent {
pub time: f64,
pub event_type: EventType,
pub source: Option<usize>,
pub target: Option<usize>,
pub node: Option<usize>,
pub features: Option<Tensor>,
pub weight: Option<f32>,
}Expand description
Temporal event representing a graph change at a specific time
Fields§
§time: f64Time of the event (continuous time)
event_type: EventTypeType of event (node addition, edge addition, feature update, etc.)
source: Option<usize>Source node ID (for edge events)
target: Option<usize>Target node ID (for edge events)
node: Option<usize>Node ID (for node events)
features: Option<Tensor>Feature vector associated with the event
weight: Option<f32>Edge weight (for edge events)
Trait Implementations§
Source§impl Clone for TemporalEvent
impl Clone for TemporalEvent
Source§fn clone(&self) -> TemporalEvent
fn clone(&self) -> TemporalEvent
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 moreAuto Trait Implementations§
impl !Freeze for TemporalEvent
impl RefUnwindSafe for TemporalEvent
impl Send for TemporalEvent
impl Sync for TemporalEvent
impl Unpin for TemporalEvent
impl UnsafeUnpin for TemporalEvent
impl UnwindSafe for TemporalEvent
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more