Trait Change

Source
pub trait Change {
    // Required method
    fn change(&mut self, v: Self) -> bool;
}

Required Methods§

Source

fn change(&mut self, v: Self) -> bool

If this value does not equal the other value, become that value and return true.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: PartialEq> Change for T