Struct jlrs::value::Values [−][src]
Several values that are allocated consecutively. This can be used in combination with
Value::call_values
and WithOutput::call_values
.
Implementations
impl<'frame> Values<'frame>
[src]
pub fn len(self) -> usize
[src]
Returns the number of Value
s in this group.
pub fn value(self, index: usize) -> JlrsResult<Value<'frame, 'static>>
[src]
Get a specific Value
in this group. Returns an error if the index is out of bounds.
pub fn new<T, V, F>(frame: &mut F, data: V) -> JlrsResult<Self> where
T: IntoJulia,
V: AsRef<[T]>,
F: Frame<'frame>,
[src]
T: IntoJulia,
V: AsRef<[T]>,
F: Frame<'frame>,
Allocate several values of the same type, this type must implement IntoJulia
. The
values will be protected from garbage collection inside the frame used to create them.
This takes as many slots on the GC stack as values that are allocated.
Returns an error if there is not enough space on the stack.
pub fn new_dyn<'v, V, F>(frame: &mut F, data: V) -> JlrsResult<Self> where
V: AsRef<[&'v dyn IntoJulia]>,
F: Frame<'frame>,
[src]
V: AsRef<[&'v dyn IntoJulia]>,
F: Frame<'frame>,
Allocate several values of possibly different types, these types must implement
IntoJulia
. The values will be protected from garbage collection inside the frame used
to create them. This takes as many slots on the GC stack as values that are allocated.
Returns an error if there is not enough space on the stack.
Trait Implementations
impl<'frame> Clone for Values<'frame>
[src]
impl<'frame> Copy for Values<'frame>
[src]
impl<'frame> Debug for Values<'frame>
[src]
Auto Trait Implementations
impl<'frame> RefUnwindSafe for Values<'frame>
[src]
impl<'frame> !Send for Values<'frame>
[src]
impl<'frame> !Sync for Values<'frame>
[src]
impl<'frame> Unpin for Values<'frame>
[src]
impl<'frame> UnwindSafe for Values<'frame>
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,