Skip to main content

ToLean

Trait ToLean 

Source
pub trait ToLean { }
Expand description

A Rust value that has a Lean counterpart: the conversion into the Lean object.

Implemented for the types that can appear in the signature of a generated function. The Lean type is determined by the Rust type: u32 is UInt32, &str and String are String, slices and Vec<T> are Array, Option<T> is Option, pairs are Prod.

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 ()

Source§

impl ToLean for String

Source§

impl ToLean for bool

Source§

impl ToLean for char

Source§

impl ToLean for f32

Source§

impl ToLean for f64

Source§

impl ToLean for i8

Source§

impl ToLean for i16

Source§

impl ToLean for i32

Source§

impl ToLean for i64

Source§

impl ToLean for isize

Source§

impl ToLean for str

Source§

impl ToLean for u8

Source§

impl ToLean for u16

Source§

impl ToLean for u32

Source§

impl ToLean for u64

Source§

impl ToLean for usize

Source§

impl<A: ToLean, B: ToLean> ToLean for (A, B)

Source§

impl<T: ToLean + ?Sized> ToLean for &T

Source§

impl<T: ToLean> ToLean for Box<T>

Source§

impl<T: ToLean> ToLean for Option<T>

Source§

impl<T: ToLean> ToLean for Vec<T>

Source§

impl<T: ToLean> ToLean for [T]

Implementors§