Struct dynamite::FFIObj [−][src]
Implementations
impl FFIObj
[src]
pub fn new<T: Any + Send + Sync + 'static>(value: T) -> Self
[src]
Create a new FFI compatible pointer to the given type
pub fn downcast_ref<T: Any>(self: &FFIObj) -> Option<&T>
[src]
Downcast the FFI object to a specific type
Trait Implementations
impl Clone for FFIObj
[src]
impl Drop for FFIObj
[src]
impl ReprC for FFIObj where
*const Erased: ReprC,
<*const Erased as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
&'static VTable: ReprC,
<&'static VTable as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
[src]
*const Erased: ReprC,
<*const Erased as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
&'static VTable: ReprC,
<&'static VTable as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
type CLayout = FFIObj_Layout
The CType
having the same layout as Self
.
fn is_valid(it: &Self::CLayout) -> bool
[src]
impl Send for FFIObj where
Arc<dyn Any + Send + Sync + 'static>: Send,
[src]
Arc<dyn Any + Send + Sync + 'static>: Send,
impl Sync for FFIObj where
Arc<dyn Any + Send + Sync + 'static>: Sync,
[src]
Arc<dyn Any + Send + Sync + 'static>: Sync,
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,