Trait emacs::IntoLisp

source ·
pub trait IntoLisp<'e> {
    // Required method
    fn into_lisp(self, env: &'e Env) -> Result<Value<'e>>;
}
Expand description

Converting a Rust type into Lisp Value.

§Implementation

The lifetime parameter is put on the trait itself, instead of the method. This allows the impl for Value to simply return the input, instead of having to create a new Value.

Required Methods§

source

fn into_lisp(self, env: &'e Env) -> Result<Value<'e>>

Implementations on Foreign Types§

source§

impl IntoLisp<'_> for &str

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for &String

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for bool

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for f64

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for i8

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for i16

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for i32

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for i64

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for isize

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for u8

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for u16

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for u32

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for u64

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for ()

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for usize

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl IntoLisp<'_> for String

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl<'e, T: 'static> IntoLisp<'e> for Rc<T>

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl<'e, T: 'static> IntoLisp<'e> for Arc<T>

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl<'e, T: 'static> IntoLisp<'e> for RefCell<T>

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl<'e, T: 'static> IntoLisp<'e> for Mutex<T>

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl<'e, T: 'static> IntoLisp<'e> for RwLock<T>

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

source§

impl<'e, T: IntoLisp<'e>> IntoLisp<'e> for Option<T>

source§

fn into_lisp(self, env: &'e Env) -> Result<Value<'_>>

source§

impl<T: Transfer> IntoLisp<'_> for Box<T>

source§

fn into_lisp(self, env: &Env) -> Result<Value<'_>>

Implementors§

source§

impl<'e> IntoLisp<'e> for &'e GlobalRef

source§

impl<'e> IntoLisp<'e> for &'e OnceGlobalRef

source§

impl<'e> IntoLisp<'e> for Value<'e>

source§

impl<'e> IntoLisp<'e> for Vector<'e>