Struct jlrs::value::WithKeywords[][src]

pub struct WithKeywords<'func, 'funcdata, 'kw, 'data> { /* fields omitted */ }

A function with keyword arguments

Implementations

impl<'func, 'funcdata, 'kw, 'kwdata> WithKeywords<'func, 'funcdata, 'kw, 'kwdata>[src]

pub fn call0<'frame, F>(
    self,
    frame: &mut F
) -> JlrsResult<CallResult<'frame, 'static>> where
    F: Frame<'frame>, 
[src]

Call this function with keywords with no arguments, this takes one slot on the GC stack. Returns the result of this function call if no exception is thrown, the exception if one is, or an error if no space is left on the stack.

pub unsafe fn call0_unprotected<'base>(
    self,
    _: Global<'base>
) -> CallResult<'base, 'static>
[src]

Call this function with keywords with no arguments and don't protect the result from garbage collection. This is safe if you won't use the result or if you can guarantee it's a global value in Julia, e.g. nothing or a Module.

pub fn call1<'frame, 'borrow, F>(
    self,
    frame: &mut F,
    arg: Value<'_, 'borrow>
) -> JlrsResult<CallResult<'frame, 'borrow>> where
    F: Frame<'frame>, 
[src]

Call this function with keywords with one argument, this takes one slot on the GC stack. Returns the result of this function call if no exception is thrown, the exception if one is, or an error if no space is left on the stack.

pub unsafe fn call1_unprotected<'base, 'borrow>(
    self,
    _: Global<'base>,
    arg: Value<'_, 'borrow>
) -> CallResult<'base, 'borrow>
[src]

Call this function with keywords with one argument and don't protect the result from garbage collection. This is safe if you won't use the result or if you can guarantee it's a global value in Julia, e.g. nothing or a Module.

pub fn call2<'frame, 'borrow, F>(
    self,
    frame: &mut F,
    arg0: Value<'_, 'borrow>,
    arg1: Value<'_, 'borrow>
) -> JlrsResult<CallResult<'frame, 'borrow>> where
    F: Frame<'frame>, 
[src]

Call this function with keywords with two arguments, this takes one slot on the GC stack. Returns the result of this function call if no exception is thrown, the exception if one is, or an error if no space is left on the stack.

pub unsafe fn call2_unprotected<'base, 'borrow>(
    self,
    _: Global<'base>,
    arg0: Value<'_, 'borrow>,
    arg1: Value<'_, 'borrow>
) -> CallResult<'base, 'borrow>
[src]

Call this function with keywords with two arguments and don't protect the result from garbage collection. This is safe if you won't use the result or if you can guarantee it's a global value in Julia, e.g. nothing or a Module.

pub fn call3<'frame, 'borrow, F>(
    self,
    frame: &mut F,
    arg0: Value<'_, 'borrow>,
    arg1: Value<'_, 'borrow>,
    arg2: Value<'_, 'borrow>
) -> JlrsResult<CallResult<'frame, 'borrow>> where
    F: Frame<'frame>, 
[src]

Call this function with keywords with three arguments, this takes one slot on the GC stack. Returns the result of this function call if no exception is thrown, the exception if one is, or an error if no space is left on the stack.

pub unsafe fn call3_unprotected<'base, 'borrow>(
    self,
    _: Global<'base>,
    arg0: Value<'_, 'borrow>,
    arg1: Value<'_, 'borrow>,
    arg2: Value<'_, 'borrow>
) -> CallResult<'base, 'borrow>
[src]

Call this function with keywords with three arguments and don't protect the result from garbage collection. This is safe if you won't use the result or if you can guarantee it's a global value in Julia, e.g. nothing or a Module.

pub fn call<'frame, 'value, 'borrow, V, F>(
    self,
    frame: &mut F,
    args: V
) -> JlrsResult<CallResult<'frame, 'borrow>> where
    V: AsMut<[Value<'value, 'borrow>]>,
    F: Frame<'frame>, 
[src]

Call this function with keywords with several arguments, this takes one slot on the GC stack. Returns the result of this function call if no exception is thrown, the exception if one is, or an error if no space is left on the stack.

pub unsafe fn call_unprotected<'base, 'value, 'borrow, V, F>(
    self,
    _: Global<'base>,
    args: V
) -> CallResult<'base, 'borrow> where
    V: AsMut<[Value<'value, 'borrow>]>, 
[src]

Call this function with keywords with several arguments and don't protect the result from garbage collection. This is safe if you won't use the result or if you can guarantee it's a global value in Julia, e.g. nothing or a Module.

Auto Trait Implementations

impl<'func, 'funcdata, 'kw, 'data> RefUnwindSafe for WithKeywords<'func, 'funcdata, 'kw, 'data>[src]

impl<'func, 'funcdata, 'kw, 'data> !Send for WithKeywords<'func, 'funcdata, 'kw, 'data>[src]

impl<'func, 'funcdata, 'kw, 'data> !Sync for WithKeywords<'func, 'funcdata, 'kw, 'data>[src]

impl<'func, 'funcdata, 'kw, 'data> Unpin for WithKeywords<'func, 'funcdata, 'kw, 'data>[src]

impl<'func, 'funcdata, 'kw, 'data> UnwindSafe for WithKeywords<'func, 'funcdata, 'kw, 'data>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.