pub enum SelfType {
Ref,
MutRef,
Value,
Static,
}Expand description
The type of self in a method signature.
Variants§
Ref
The method uses &self.
MutRef
The method uses &mut self.
Value
The method uses self.
Static
The method has no self parameter.
Trait Implementations§
impl Copy for SelfType
impl Eq for SelfType
impl StructuralPartialEq for SelfType
Auto Trait Implementations§
impl Freeze for SelfType
impl RefUnwindSafe for SelfType
impl Send for SelfType
impl Sync for SelfType
impl Unpin for SelfType
impl UnwindSafe for SelfType
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