pub trait NamedBusDevice<T>: Display + BusDevice<Timestamp = T, NextDevice = NullDevice<T>> { }
Expand description

A trait for dynamic bus devices, which currently includes methods from Display and BusDevice. Devices implementing this trait can be used with a DynamicBus.

Implemented for all types that implement dependent traits.

Implementations§

Attempts to downcast the box to a concrete type.

Returns true if the boxed type is the same as D

Returns some reference to the boxed value if it is of type D, or None if it isn’t.

Returns some mutable reference to the boxed value if it is of type D, or None if it isn’t.

Trait Implementations§

Note

Because we need to guess the concrete type of the dynamic BusDevice we can currently handle only the most common cases: Ay3_891xMelodik and Ay3_891xFullerBox. If you use a customized Ay3_891xBusDevice for a dynamic BusDevice you need to render audio directly on the device downcasted to your custom type.

Implementors§