Enum pregel_rs::pregel::MessageReceiver
source · pub enum MessageReceiver {
Subject,
Object,
}
Expand description
This code is defining an enumeration type MessageReceiver
in Rust with
two variants: Subject
and Object
. This can be used to represent the source and
destination of a message in a Pregel program.
Variants§
Subject
The Subject
variant indicates that a message should go to the source of
an edge.
Object
The Object
variant indicates that a message should go to the destination
of an edge.
Trait Implementations§
source§impl From<MessageReceiver> for Column
impl From<MessageReceiver> for Column
The above code is implementing the From
trait for the Column
enum, which
allows creating a Column
instance from a MessageReceiver
instance. The
match
statement maps the MessageReceiver
variants to the corresponding
Column
variants.
source§fn from(message_receiver: MessageReceiver) -> Column
fn from(message_receiver: MessageReceiver) -> Column
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MessageReceiver
impl Send for MessageReceiver
impl Sync for MessageReceiver
impl Unpin for MessageReceiver
impl UnwindSafe for MessageReceiver
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