Struct emacs::Env
[−]
[src]
pub struct Env { /* fields omitted */ }
Main point of interaction with the Lisp runtime.
Methods
impl Env
[src]
Public APIs.
unsafe fn new(raw: *mut emacs_env) -> Self
[src]
unsafe fn from_runtime(runtime: *mut emacs_runtime) -> Self
[src]
fn raw(&self) -> *mut emacs_env
[src]
fn intern(&self, name: &str) -> Result<Value>
[src]
fn type_of(&self, value: Value) -> Result<Value>
[src]
fn call(&self, name: &str, args: &[Value]) -> Result<Value>
[src]
fn is_not_nil(&self, value: Value) -> bool
[src]
fn eq(&self, a: Value, b: Value) -> bool
[src]
fn list(&self, args: &[Value]) -> Result<Value>
[src]
fn provide(&self, name: &str) -> Result<Value>
[src]
fn message(&self, text: &str) -> Result<Value>
[src]
Trait Implementations
impl Manage for Env
[src]
fn make_function<T: Into<Vec<u8>>>(
&self,
function: EmacsSubr,
arities: Range<usize>,
doc: T,
data: *mut c_void
) -> Result<Value>
[src]
&self,
function: EmacsSubr,
arities: Range<usize>,
doc: T,
data: *mut c_void
) -> Result<Value>
fn fset(&self, name: &str, func: Value) -> Result<Value>
[src]
impl HandleInit for Env
[src]
fn handle_init<F>(self, f: F) -> c_int where
F: Fn(&Env) -> Result<Value> + RefUnwindSafe,
[src]
F: Fn(&Env) -> Result<Value> + RefUnwindSafe,