[−][src]Enum dart_sys::Dart_CObject_Type
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 Dart_CObject_Type
[src]
fn clone(&self) -> Dart_CObject_Type
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Dart_CObject_Type
[src]
impl PartialEq<Dart_CObject_Type> for Dart_CObject_Type
[src]
fn eq(&self, other: &Dart_CObject_Type) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for Dart_CObject_Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dart_CObject_Type
impl Send for Dart_CObject_Type
impl Sync for Dart_CObject_Type
impl Unpin for Dart_CObject_Type
impl UnwindSafe for Dart_CObject_Type
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,