Enum fluence_faas::IType[]

pub enum IType {
Show variants Boolean, S8, S16, S32, S64, U8, U16, U32, U64, F32, F64, String, ByteArray, Array(Box<IType, Global>), I32, I64, Record(u64),
}

Represents the types supported by WIT.

Variants

Boolean

Boolean.

S8

A 8-bits signed integer.

S16

A 16-bits signed integer.

S32

A 32-bits signed integer.

S64

A 64-bits signed integer.

U8

A 8-bits unsigned integer.

U16

A 16-bits unsigned integer.

U32

A 32-bits unsigned integer.

U64

A 64-bits unsigned integer.

F32

A 32-bits float.

F64

A 64-bits float.

String

A string.

ByteArray

Specialization of arrays for byte vector.

Array(Box<IType, Global>)

An array of values of the same type.

I32

A 32-bits integer (as defined in WebAssembly core).

I64

A 64-bits integer (as defined in WebAssembly core).

Record(u64)

A record contains record index from interfaces AST.

Trait Implementations

impl Clone for IType

pub fn clone(&self) -> IType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for IType

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for IType

pub fn deserialize<__D>(
    __deserializer: __D
) -> Result<IType, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, 

Deserialize this value from the given Serde deserializer. Read more

impl Hash for IType

pub fn hash<__H>(&self, state: &mut __H) where
    __H: Hasher

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl<'_> Parse<'_> for IType

pub fn parse(parser: Parser<'_>) -> Result<IType, Error>

Attempts to parse Self from parser, returning an error if it could not be parsed. Read more

impl PartialEq<IType> for IType

pub fn eq(&self, other: &IType) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &IType) -> bool

This method tests for !=.

impl Serialize for IType

pub fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer

Serialize this value into the given Serde serializer. Read more

impl<W> ToBytes<W> for IType where
    W: Write

Encode an IType into bytes.

pub fn to_bytes(&self, writer: &mut W) -> Result<(), Error>

Converts the given value into &[u8] in the given writer.

impl<'_> ToString for &'_ IType

Encode an IType into a string.

pub fn to_string(&self) -> String

Converts the given value to a String. Read more

impl Eq for IType

impl StructuralEq for IType

impl StructuralPartialEq for IType

Auto Trait Implementations

impl RefUnwindSafe for IType

impl Send for IType

impl Sync for IType

impl Unpin for IType

impl UnwindSafe for IType

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

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

pub fn erased_serialize(
    &self,
    serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]