[]Enum dart::dart_cobject::CObject

pub enum CObject {
    Null,
    Bool(bool),
    Int32(i32),
    Int64(i64),
    Double(f64),
    String(CString),
    SendPort(Sender),
    Array(Vec<Self>),
    TypedData(TypedDataArray<dyn Any>),
}

Variants

Null
Bool(bool)
Int32(i32)
Int64(i64)
Double(f64)
String(CString)
SendPort(Sender)
Array(Vec<Self>)
TypedData(TypedDataArray<dyn Any>)

Methods

impl CObject[src]

pub unsafe fn from(
    ffi::Dart_CObject { type_: ty, value: value }: Dart_CObject
) -> Self
[src]

pub fn into_leak(self) -> Dart_CObject[src]

pub fn as_non_leak(&self) -> CObjectLock[src]

Auto Trait Implementations

impl !RefUnwindSafe for CObject

impl !Send for CObject

impl !Sync for CObject

impl !Unpin for CObject

impl !UnwindSafe for CObject

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.