pub enum SelfMode {
None,
Shared,
Mutable,
}Expand description
Whether a function is a plain function, or a method with a self
receiver (spec 2.5): self is a shared borrow, mut self a mutable
borrow. There is no owned self in milestone 2.
Variants§
Trait Implementations§
impl Copy for SelfMode
impl Eq for SelfMode
impl StructuralPartialEq for SelfMode
Auto Trait Implementations§
impl Freeze for SelfMode
impl RefUnwindSafe for SelfMode
impl Send for SelfMode
impl Sync for SelfMode
impl Unpin for SelfMode
impl UnsafeUnpin for SelfMode
impl UnwindSafe for SelfMode
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