Enum fluence_sdk_wit::ParsedType[][src]

pub enum ParsedType {
    I8(PassingStyle),
    I16(PassingStyle),
    I32(PassingStyle),
    I64(PassingStyle),
    U8(PassingStyle),
    U16(PassingStyle),
    U32(PassingStyle),
    U64(PassingStyle),
    F32(PassingStyle),
    F64(PassingStyle),
    Boolean(PassingStyle),
    Utf8Str(PassingStyle),
    Utf8String(PassingStyle),
    Vector(Box<ParsedType>, PassingStyle),
    Record(String, PassingStyle),
}

An internal representation of supported Rust types.

Variants

I8(PassingStyle)
I16(PassingStyle)
I32(PassingStyle)
I64(PassingStyle)
U8(PassingStyle)
U16(PassingStyle)
U32(PassingStyle)
U64(PassingStyle)
F32(PassingStyle)
F64(PassingStyle)
Boolean(PassingStyle)
Utf8Str(PassingStyle)
Utf8String(PassingStyle)
Vector(Box<ParsedType>, PassingStyle)
Record(String, PassingStyle)

Implementations

impl ParsedType[src]

pub fn from_type(input_type: &Type) -> Result<Self>[src]

pub fn from_fn_arg(fn_arg: &FnArg) -> Result<Self>[src]

pub fn from_return_type(ret_type: &ReturnType) -> Result<Option<Self>>[src]

pub fn is_complex_type(&self) -> bool[src]

Trait Implementations

impl Clone for ParsedType[src]

impl Debug for ParsedType[src]

impl<'de> Deserialize<'de> for ParsedType[src]

impl Display for ParsedType[src]

impl PartialEq<ParsedType> for ParsedType[src]

impl Serialize for ParsedType[src]

impl StructuralPartialEq for ParsedType[src]

impl ToTokens for ParsedType[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.