pub struct ObserverBinary {}
Expand description
Represents an observer that prints out the current number from the
Subject in binary.
Constructor
Returns a new instance of the ObserverBinary class as represented by
the IObserverNumberChanged trait.
Helper method to display the number in binary.
-
number
The number to display.
This is called whenever the number in the ObserverNumberProducer object
is changed.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
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.