pub enum MessagePassing {
Sum,
Mean,
Max,
Min,
Attention,
}Expand description
Aggregation strategy for collecting neighbor messages (legacy Vec-based API)
Variants§
Sum
Sum all neighbor messages
Mean
Arithmetic mean of neighbor messages
Max
Element-wise maximum
Min
Element-wise minimum
Attention
Attention-weighted mean (weights computed internally)
Trait Implementations§
Source§impl Clone for MessagePassing
impl Clone for MessagePassing
Source§fn clone(&self) -> MessagePassing
fn clone(&self) -> MessagePassing
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 MessagePassing
impl Debug for MessagePassing
Source§impl Default for MessagePassing
impl Default for MessagePassing
Source§fn default() -> MessagePassing
fn default() -> MessagePassing
Returns the “default value” for a type. Read more
Source§impl PartialEq for MessagePassing
impl PartialEq for MessagePassing
impl StructuralPartialEq for MessagePassing
Auto Trait Implementations§
impl Freeze for MessagePassing
impl RefUnwindSafe for MessagePassing
impl Send for MessagePassing
impl Sync for MessagePassing
impl Unpin for MessagePassing
impl UnsafeUnpin for MessagePassing
impl UnwindSafe for MessagePassing
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
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