[−][src]Enum allo_isolate::ffi::DartCObjectType
A Dart_CObject is used for representing Dart objects as native C data outside the Dart heap. These objects are totally detached from the Dart heap. Only a subset of the Dart objects have a representation as a Dart_CObject.
The string encoding in the 'value.as_string' is UTF-8.
All the different types from dart:typed_data are exposed as type kTypedData. The specific type from dart:typed_data is in the type field of the as_typed_data structure. The length in the as_typed_data structure is always in bytes.
The data for kTypedData is copied on message send and ownership remains with the caller. The ownership of data for kExternalTyped is passed to the VM on message send and returned when the VM invokes the Dart_WeakPersistentHandleFinalizer callback; a non-NULL callback must be provided.
Variants
Trait Implementations
impl Clone for DartCObjectType[src]
fn clone(&self) -> DartCObjectType[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for DartCObjectType[src]
impl Debug for DartCObjectType[src]
impl PartialEq<DartCObjectType> for DartCObjectType[src]
fn eq(&self, other: &DartCObjectType) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralPartialEq for DartCObjectType[src]
Auto Trait Implementations
impl RefUnwindSafe for DartCObjectType
impl Send for DartCObjectType
impl Sync for DartCObjectType
impl Unpin for DartCObjectType
impl UnwindSafe for DartCObjectType
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>,