Searched refs:IsA (Results 1 – 6 of 6) sorted by relevance
129 pub unsafe trait IsA<P: ObjectType>: ObjectType {} interface132 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 …]
37 pub trait SysBusDeviceImpl: DeviceImpl + IsA<SysBusDevice> {}50 Self::Target: IsA<SysBusDevice>,122 impl<R: ObjectDeref> SysBusDeviceMethods for R where R::Target: IsA<SysBusDevice> {}
17 pub use crate::qom::IsA;
105 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> {}
168 pub fn init_io<T: IsA<Object>>( in init_io()
143 trait PL011Impl: SysBusDeviceImpl + IsA<PL011State> {