Enum hs_bindgen_traits::HsType
source · [−]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
sourceimpl HsType
impl HsType
sourcepub fn quote(&self) -> TokenStream
pub fn quote(&self) -> TokenStream
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
Auto Trait Implementations
impl RefUnwindSafe for HsType
impl Send for HsType
impl Sync for HsType
impl Unpin for HsType
impl UnwindSafe for HsType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more