pub fn neq_set(&mut self, value: T) -> bool {
        if self.0[0] != value {
            self.set(value);
            true
        } else {
            false
        }
    }
/// Will only `set` the value if the provided value is different than the current value.
///
/// It returns true to indicate if the history's current value was updated to be the provided value.
/// # Example
/// ```
///# use yewtil::History;
/// let mut history = History::new(0);
/// let did_set = history.neq_set(0);
/// assert!(!did_set);
///
/// let did_set = history.neq_set(1);
/// assert!(did_set);
/// ```
Will only `set` the value if the provided value is different than the current value.
It returns true to indicate if the history's current value was updated to be the provided value.
Example
```
Will only ` set ` the value if the provided value is different than the current value . It returns true to indicate if the history ' s current value was updated to be the provided value . Example ` ` `
pub fn neq_set(&mut self, value: T) -> bool {
        if self.0[0] != value {
            self.set(value);
            true
        } else {
            false
        }
    }
pub fn neq_set ( & mut self , value : T ) -> bool { if self . 0 [ 0 ] != value { self . set ( value ) ; true } else { false } }
Will only `set` the value if the provided value is different than the current value.
Will only ` set ` the value if the provided value is different than the current value .
&mut self
value
T
&mut self
value
T
use yewtil::history;
let mut history = History::new(0);
let did_set = history.neq_set(0);
assert!(!did_set).

let did_set = history.neq_set(1);
assert!(did_set);
```
let mut history = History :: new ( 0 ) ; let did_set = history . neq_set ( 0 ) ; assert! ( !did_set ) . let did_set = history . neq_set ( 1 ) ; assert! ( did_set ) ; ` ` `