pub enum Change {
Changed,
Unchanged,
}
Expand description
Determine wether the bitfield.set()
method changed the underlying value.
Variants§
Changed
The value was changed. Equal to true
in mafintosh/sparse-bitfield
.
Unchanged
The value was not changed. Equal to false
in
mafintosh/sparse-bitfield
.
Implementations§
Source§impl Change
impl Change
Sourcepub fn is_changed(&self) -> bool
pub fn is_changed(&self) -> bool
Returns true
if the result is Changed
.
Sourcepub fn is_unchanged(&self) -> bool
pub fn is_unchanged(&self) -> bool
Returns true
if the result is Unchanged
.
Trait Implementations§
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
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