Skip to main content

FromLean

Trait FromLean 

Source
pub trait FromLean: Sized {
    // Required method
    unsafe fn from_lean(o: Obj) -> Self;
}
Expand description

Conversion of a Lean object into a Rust value.

Required Methods§

Source

unsafe fn from_lean(o: Obj) -> Self

The Rust value of the borrowed boxed object o.

§Safety

o must be a valid Lean value of the type this Rust type stands for.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FromLean for ()

Source§

unsafe fn from_lean(_o: Obj) -> Self

Source§

impl FromLean for String

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for bool

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for char

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for f32

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for f64

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for i8

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for i16

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for i32

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for i64

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for isize

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for u8

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for u16

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for u32

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for u64

Source§

unsafe fn from_lean(o: Obj) -> Self

Source§

impl FromLean for usize

Source§

unsafe fn from_lean(o: Obj) -> Self

Implementors§