Expand description
A type that you can use to declare and implement an event of a specified delegate type.
The implementation is thread-safe and designed to avoid contention between events being
raised and delegates being added or removed.
Creates a new, empty Event<T>
.
Registers a delegate with the event object.
Revokes a delegate’s registration from the event object.
Clears the event, removing all delegates.
Invokes all of the event object’s registered delegates with the provided callback.
Returns the “default value” for a type.
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.