Struct jlrs::value::WithKeywords [−][src]
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]
self,
frame: &mut F
) -> JlrsResult<CallResult<'frame, 'static>> where
F: Frame<'frame>,
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]
self,
_: Global<'base>
) -> CallResult<'base, 'static>
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]
self,
frame: &mut F,
arg: Value<'_, 'borrow>
) -> JlrsResult<CallResult<'frame, 'borrow>> where
F: Frame<'frame>,
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]
self,
_: Global<'base>,
arg: Value<'_, 'borrow>
) -> CallResult<'base, 'borrow>
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]
self,
frame: &mut F,
arg0: Value<'_, 'borrow>,
arg1: Value<'_, 'borrow>
) -> JlrsResult<CallResult<'frame, 'borrow>> where
F: Frame<'frame>,
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]
self,
_: Global<'base>,
arg0: Value<'_, 'borrow>,
arg1: Value<'_, 'borrow>
) -> CallResult<'base, 'borrow>
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]
self,
frame: &mut F,
arg0: Value<'_, 'borrow>,
arg1: Value<'_, 'borrow>,
arg2: Value<'_, 'borrow>
) -> JlrsResult<CallResult<'frame, 'borrow>> where
F: Frame<'frame>,
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]
self,
_: Global<'base>,
arg0: Value<'_, 'borrow>,
arg1: Value<'_, 'borrow>,
arg2: Value<'_, 'borrow>
) -> CallResult<'base, 'borrow>
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]
self,
frame: &mut F,
args: V
) -> JlrsResult<CallResult<'frame, 'borrow>> where
V: AsMut<[Value<'value, 'borrow>]>,
F: Frame<'frame>,
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]
self,
_: Global<'base>,
args: V
) -> CallResult<'base, 'borrow> where
V: AsMut<[Value<'value, 'borrow>]>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,