Skip to main content

IntoLean

Trait IntoLean 

Source
pub unsafe trait IntoLean<L: LeanRepr> { }
Expand description

An argument of a function of the lean module of a generated module: the Rust value of L (converted for the call), a &Lean<L> or a Lean<L>.

§Safety

into_obj must return an owned object of the Lean type L names.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoLean<()> for ()

Source§

impl IntoLean<String> for &String

Source§

impl IntoLean<String> for &str

Source§

impl IntoLean<String> for String

Source§

impl IntoLean<bool> for bool

Source§

impl IntoLean<char> for char

Source§

impl IntoLean<f32> for f32

Source§

impl IntoLean<f64> for f64

Source§

impl IntoLean<i8> for i8

Source§

impl IntoLean<i16> for i16

Source§

impl IntoLean<i32> for i32

Source§

impl IntoLean<i64> for i64

Source§

impl IntoLean<isize> for isize

Source§

impl IntoLean<u8> for u8

Source§

impl IntoLean<u16> for u16

Source§

impl IntoLean<u32> for u32

Source§

impl IntoLean<u64> for u64

Source§

impl IntoLean<usize> for usize

Source§

impl<A: LeanRepr, B: LeanRepr> IntoLean<(A, B)> for (A::Value, B::Value)

Source§

impl<T: LeanRepr, E: LeanRepr> IntoLean<Result<T, E>> for Result<T::Value, E::Value>

Source§

impl<T: LeanRepr> IntoLean<Array<T>> for Vec<T::Value>

Source§

impl<T: LeanRepr> IntoLean<List<T>> for Vec<T::Value>

Source§

impl<T: LeanRepr> IntoLean<Option<T>> for Option<T::Value>

Source§

impl<const N: u64> IntoLean<Fin<N>> for usize

Implementors§

Source§

impl IntoLean<Int> for Int

Source§

impl IntoLean<Nat> for Nat

Source§

impl<L: LeanRepr> IntoLean<L> for &Lean<L>

Source§

impl<L: LeanRepr> IntoLean<L> for Lean<L>