Skip to main content

ToLean

Trait ToLean 

Source
pub trait ToLean {
    // Required method
    unsafe fn to_lean(self) -> Obj;
}
Expand description

Conversion of a Rust value into a Lean object.

Required Methods§

Source

unsafe fn to_lean(self) -> Obj

The owned boxed object of self.

§Safety

The result is an owned Lean object that must be released with lean_dec or passed on.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToLean for &str

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for ()

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for String

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for bool

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for char

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for f32

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for f64

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for i8

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for i16

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for i32

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for i64

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for isize

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for u8

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for u16

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for u32

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for u64

Source§

unsafe fn to_lean(self) -> Obj

Source§

impl ToLean for usize

Source§

unsafe fn to_lean(self) -> Obj

Implementors§