pub struct ObserverHexadecimal {}
Expand description
Represents an observer that prints out the current number from the
Subject in hexadecimal.
Constructor
Returns a new instance of the ObserverHexadecimal class as represented
by the IObserverNumberChanged trait.
Helper method to display the number in hexadecimal.
-
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.