curryrs-0.2.0: Easy to use FFI Bridge for using Rust in Haskell

Safe HaskellSafe
LanguageHaskell2010

Curryrs.Types

Description

Definitions of each FFI type that can be used in Rust. These are standardized accross the Rust and Haskell Curryrs library for easy translation of function headers between the two.

Synopsis

Documentation

type Chr = CChar Source #

Used to represent Char in both languages

type Str = CString Source #

Used to represent Strings in both languages

type U8 = Word8 Source #

Used to represent 8 bit unsigned numbers in both languages

type U16 = Word16 Source #

Used to represent 16 bit unsigned numbers in both languages

type U32 = Word32 Source #

Used to represent 32 bit unsigned numbers in both languages

type U64 = Word64 Source #

Used to represent 64 bit unsigned numbers in both languages

type I8 = Int8 Source #

Used to represent 8 bit signed numbers in both languages

type I16 = Int16 Source #

Used to represent 16 bit signed numbers in both languages

type I32 = Int32 Source #

Used to represent 32 bit signed numbers in both languages

type I64 = Int64 Source #

Used to represent 64 bit signed numbers in both languages

type F32 = CFloat Source #

Used to represent 32 bit floating point numbers in both languages

type F64 = CDouble Source #

Used to represent 64 bit floating point numbers in both languages

type Boolean = Word8 Source #

Used to represent Booleans in both languages