ReprHs

Trait ReprHs 

Source
pub trait ReprHs {
    // Required method
    fn into() -> HsType;
}
Expand description

Turn a given Rust type into his HsType target.

Deducing what’s the right Haskell type target given an arbitrary Rust type is provided by antlion feature of hs-bingen-derive and rely mostly on Rust type inference through this trait.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ReprHs for &str

Source§

impl ReprHs for &CStr

Source§

impl ReprHs for ()

Source§

impl ReprHs for CString

Source§

impl ReprHs for String

Source§

impl ReprHs for c_char

Source§

impl ReprHs for c_double

Source§

impl ReprHs for c_float

Source§

impl ReprHs for c_int

Source§

impl ReprHs for c_long

Source§

impl ReprHs for c_short

Source§

impl ReprHs for c_uchar

Source§

impl ReprHs for c_uint

Source§

impl ReprHs for c_ulong

Source§

impl ReprHs for c_ushort

Source§

impl<T> ReprHs for *const T
where T: ReprHs,

Source§

impl<T> ReprHs for *mut T
where T: ReprHs,

Source§

impl<T> ReprHs for Vec<T>
where T: ReprHs,

Source§

impl<T, const N: usize> ReprHs for &[T; N]
where T: ReprHs,

Implementors§