Home
last modified time | relevance | path

Searched refs:IsA (Results 1 – 6 of 6) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dqom.rs129 pub unsafe trait IsA<P: ObjectType>: ObjectType {} interface
132 unsafe impl<T: ObjectType> IsA<T> for T {}
149 unsafe impl $crate::qom::IsA<$parent> for $struct {}
370 Self::Target: IsA<U>, in as_ptr()
387 Self::Target: IsA<U>, in as_mut_ptr()
408 Self::Target: IsA<U>, in upcast()
419 fn downcast<'a, U: IsA<Self::Target>>(self) -> Option<&'a U> in downcast()
468 pub trait ObjectImpl: ObjectType + IsA<Object> {
706 impl<T: IsA<Object>> fmt::Debug for Owned<T> {
717 pub trait ObjectClassMethods: IsA<Object> {
[all …]
H A Dsysbus.rs37 pub trait SysBusDeviceImpl: DeviceImpl + IsA<SysBusDevice> {}
50 Self::Target: IsA<SysBusDevice>,
122 impl<R: ObjectDeref> SysBusDeviceMethods for R where R::Target: IsA<SysBusDevice> {}
H A Dprelude.rs17 pub use crate::qom::IsA;
H A Dqdev.rs105 pub trait DeviceImpl: ObjectImpl + ResettablePhasesImpl + IsA<DeviceState> {
251 /// called on all objects that have the trait `IsA<DeviceState>`.
254 /// which guarantees safety via `IsA`.
257 Self::Target: IsA<DeviceState>,
392 impl<R: ObjectDeref> DeviceMethods for R where R::Target: IsA<DeviceState> {}
H A Dmemory.rs168 pub fn init_io<T: IsA<Object>>( in init_io()
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs143 trait PL011Impl: SysBusDeviceImpl + IsA<PL011State> {