pub enum ReceiverMode {
ByValue,
ByRef,
ByMutRef,
}Expand description
How the receiver is passed to a method.
Variants§
ByValue
Method takes ownership: fn method(self)
ByRef
Method borrows: fn method(&self)
ByMutRef
Method mutably borrows: fn method(&mut self)
Trait Implementations§
Source§impl Clone for ReceiverMode
impl Clone for ReceiverMode
Source§fn clone(&self) -> ReceiverMode
fn clone(&self) -> ReceiverMode
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 ReceiverMode
impl Debug for ReceiverMode
Source§impl PartialEq for ReceiverMode
impl PartialEq for ReceiverMode
impl Copy for ReceiverMode
impl Eq for ReceiverMode
impl StructuralPartialEq for ReceiverMode
Auto Trait Implementations§
impl Freeze for ReceiverMode
impl RefUnwindSafe for ReceiverMode
impl Send for ReceiverMode
impl Sync for ReceiverMode
impl Unpin for ReceiverMode
impl UnwindSafe for ReceiverMode
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