pub struct ListenerId<T: ?Sized> { /* private fields */ }
Expand description

Allows to safely cast listener back to user type

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Attempts to downcast this to T behind reference

Attempts to downcast this to T behind mutable reference

Attempts to downcast this to T behind Rc pointer

Attempts to downcast this to T behind Arc pointer

Attempts to downcast this to T behind Box pointer

Attempts to downcast owned Self to T, useful only in generic context as a workaround for specialization 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.