pub enum HsType {
    CString,
    Empty,
    IO(Box<HsType>),
}
Expand description

Enumeration of all Haskell F-FFI safe types as the string representation of their token in Haskell.

Variants

CString

Empty

IO(Box<HsType>)

Implementations

Get the C-FFI Rust type that match the memory layout of a given HsType.

This function return a OUTPUT: proc_macro2::TokenStream that should be valid (considered as FFI-safe by rustc) in the context of a block of form: quote! { extern C fn _(_: #OUTPUT) {} }

Trait Implementations

Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.