pub struct Observable<Data> { /* private fields */ }

Implementations

It takes as an argument a function to change the value of the data, and then notifies all listeners. It doesn’t matter if the new data value is different from the previous ones, the listeners will still be notified.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.