pub type TypeCheckerMut<'b> = TypeChecker_TO<RMut<'b, ()>>;
Expand description
An ffi-safe equivalent of &’b mut dyn TypeChecker
Aliased Type§
struct TypeCheckerMut<'b> {
pub obj: RObject<'static, RMut<'b, ()>, TypeChecker_Interface, VTable_Prefix<(), RMut<'b, ()>>>,
/* private fields */
}
Fields§
§obj: RObject<'static, RMut<'b, ()>, TypeChecker_Interface, VTable_Prefix<(), RMut<'b, ()>>>
Implementations
Source§impl<_ErasedPtr> TypeChecker_TO<_ErasedPtr>
impl<_ErasedPtr> TypeChecker_TO<_ErasedPtr>
Sourcepub fn from_ptr<_OrigPtr, Downcasting>(
ptr: _OrigPtr,
can_it_downcast: Downcasting,
) -> Selfwhere
_OrigPtr: CanTransmuteElement<(), TransmutedPtr = _ErasedPtr>,
_OrigPtr::PtrTarget: TypeChecker + Sized,
TypeChecker_Interface: GetRObjectVTable<Downcasting, _OrigPtr::PtrTarget, _ErasedPtr, _OrigPtr>,
pub fn from_ptr<_OrigPtr, Downcasting>(
ptr: _OrigPtr,
can_it_downcast: Downcasting,
) -> Selfwhere
_OrigPtr: CanTransmuteElement<(), TransmutedPtr = _ErasedPtr>,
_OrigPtr::PtrTarget: TypeChecker + Sized,
TypeChecker_Interface: GetRObjectVTable<Downcasting, _OrigPtr::PtrTarget, _ErasedPtr, _OrigPtr>,
Constructs this trait object from a pointer to a type that implements TypeChecker
.
This method is automatically generated,
for more documentation you can look at
abi_stable::docs::sabi_trait_inherent
can_it_downcast
describes whether the trait object can be converted back into the original type or not.
Its possible values are TD_CanDowncast
and TD_Opaque
.
Sourcepub fn from_sabi(obj: TypeChecker_Backend<_ErasedPtr>) -> Self
pub fn from_sabi(obj: TypeChecker_Backend<_ErasedPtr>) -> Self
Constructs this trait object from its underlying implementation.
This method is automatically generated,
for more documentation you can look at
abi_stable::docs::sabi_trait_inherent
Sourcepub fn sabi_reborrow<'_sub>(&'_sub self) -> TypeChecker_TO<RRef<'_sub, ()>>
pub fn sabi_reborrow<'_sub>(&'_sub self) -> TypeChecker_TO<RRef<'_sub, ()>>
Reborrows this trait object to a reference-based trait object.
This method is automatically generated,
for more documentation you can look at
abi_stable::docs::sabi_trait_inherent
Sourcepub fn sabi_reborrow_mut<'_sub>(
&'_sub mut self,
) -> TypeChecker_TO<RMut<'_sub, ()>>
pub fn sabi_reborrow_mut<'_sub>( &'_sub mut self, ) -> TypeChecker_TO<RMut<'_sub, ()>>
Reborrows this trait object to a mutable-reference-based trait object.
This method is automatically generated,
for more documentation you can look at
abi_stable::docs::sabi_trait_inherent
Source§impl<_ErasedPtr> TypeChecker_TO<_ErasedPtr>
impl<_ErasedPtr> TypeChecker_TO<_ErasedPtr>
Sourcepub fn check_compatibility(
&mut self,
param_0: &'static TypeLayout,
param_1: &'static TypeLayout,
) -> RResult<(), ExtraChecksError>
pub fn check_compatibility( &mut self, param_0: &'static TypeLayout, param_1: &'static TypeLayout, ) -> RResult<(), ExtraChecksError>
This is the inherent equivalent of the trait method of the same name
Sourcepub fn local_check_compatibility(
&mut self,
param_0: &'static TypeLayout,
param_1: &'static TypeLayout,
) -> RResult<(), ExtraChecksError>
pub fn local_check_compatibility( &mut self, param_0: &'static TypeLayout, param_1: &'static TypeLayout, ) -> RResult<(), ExtraChecksError>
This is the inherent equivalent of the trait method of the same name
Trait Implementations
Source§impl<_ErasedPtr> GetStaticEquivalent_ for TypeChecker_TO<_ErasedPtr>
impl<_ErasedPtr> GetStaticEquivalent_ for TypeChecker_TO<_ErasedPtr>
Source§type StaticEquivalent = _static_TypeChecker_TO<<_ErasedPtr as GetStaticEquivalent_>::StaticEquivalent>
type StaticEquivalent = _static_TypeChecker_TO<<_ErasedPtr as GetStaticEquivalent_>::StaticEquivalent>
'static
equivalent of Self
Source§impl<_ErasedPtr> StableAbi for TypeChecker_TO<_ErasedPtr>
impl<_ErasedPtr> StableAbi for TypeChecker_TO<_ErasedPtr>
Source§const LAYOUT: &'static TypeLayout = _
const LAYOUT: &'static TypeLayout = _
Source§type IsNonZeroType = <RObject<'static, _ErasedPtr, TypeChecker_Interface, VTable_Prefix<(), _ErasedPtr>> as StableAbi>::IsNonZeroType
type IsNonZeroType = <RObject<'static, _ErasedPtr, TypeChecker_Interface, VTable_Prefix<(), _ErasedPtr>> as StableAbi>::IsNonZeroType
Source§const ABI_CONSTS: AbiConsts = _
const ABI_CONSTS: AbiConsts = _
const
-equivalents of the associated types.