#[non_exhaustive]pub enum ReceiverKind {
Value,
Reference(And, Option<Lifetime>, Option<Mut>),
Typed(Colon, Box<Type>),
}Available on crate feature
full only.Expand description
Different shorthand and explicit notations for a method receiver.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Value
self or mut self
Reference(And, Option<Lifetime>, Option<Mut>)
&self or &mut self
Typed(Colon, Box<Type>)
self: Box<Self>
Trait Implementations§
Source§impl Clone for ReceiverKind
Available on crate feature clone-impls only.
impl Clone for ReceiverKind
Available on crate feature
clone-impls only.Source§impl Debug for ReceiverKind
Available on crate feature extra-traits only.
impl Debug for ReceiverKind
Available on crate feature
extra-traits only.impl Eq for ReceiverKind
Available on crate feature
extra-traits only.Source§impl Hash for ReceiverKind
Available on crate feature extra-traits only.
impl Hash for ReceiverKind
Available on crate feature
extra-traits only.Auto Trait Implementations§
impl !Send for ReceiverKind
impl !Sync for ReceiverKind
impl Freeze for ReceiverKind
impl RefUnwindSafe for ReceiverKind
impl Unpin for ReceiverKind
impl UnsafeUnpin for ReceiverKind
impl UnwindSafe for ReceiverKind
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