pub enum Purity {
Pure,
Impure,
}Expand description
Whether a method is pure or has side effects.
Variants§
Pure
No allocation, no I/O, no mutation of receiver state visible to the caller.
Impure
May mutate the receiver, allocate, or perform I/O.
Trait Implementations§
impl Copy for Purity
impl Eq for Purity
impl StructuralPartialEq for Purity
Auto Trait Implementations§
impl Freeze for Purity
impl RefUnwindSafe for Purity
impl Send for Purity
impl Sync for Purity
impl Unpin for Purity
impl UnsafeUnpin for Purity
impl UnwindSafe for Purity
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