Struct jlrs::value::simple_vector::SimpleVector [−][src]
A SimpleVector
is a fixed-size array that contains Value
s.
Implementations
impl<'frame> SimpleVector<'frame>
[src]
pub fn with_capacity<F>(frame: &mut F, n: usize) -> JlrsResult<Self> where
F: Frame<'frame>,
[src]
F: Frame<'frame>,
Create a new SimpleVector
that can hold n
values.
pub unsafe fn with_capacity_uninit<F>(
frame: &mut F,
n: usize
) -> JlrsResult<Self> where
F: Frame<'frame>,
[src]
frame: &mut F,
n: usize
) -> JlrsResult<Self> where
F: Frame<'frame>,
Create a new SimpleVector
that can hold n
values without initializing its contents.
The contents must be set before calling Julia again.
pub fn len(self) -> usize
[src]
Returns the length of this SimpleVector
.
pub fn data(self) -> &'frame [Value<'frame, 'static>]
[src]
Returns the data of this SimpleVector
.
pub unsafe fn set<'data>(
self,
index: usize,
value: Value<'_, 'data>
) -> JlrsResult<Value<'frame, 'data>>
[src]
self,
index: usize,
value: Value<'_, 'data>
) -> JlrsResult<Value<'frame, 'data>>
pub fn as_value(self) -> Value<'frame, 'static>
[src]
Convert self
to a Value
.
impl<'base> SimpleVector<'base>
[src]
Trait Implementations
impl<'frame, 'data> Cast<'frame, 'data> for SimpleVector<'frame>
[src]
type Output = Self
fn cast(value: Value<'frame, 'data>) -> JlrsResult<Self::Output>
[src]
unsafe fn cast_unchecked(value: Value<'frame, 'data>) -> Self::Output
[src]
impl<'frame> Clone for SimpleVector<'frame>
[src]
fn clone(&self) -> SimpleVector<'frame>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'frame> Copy for SimpleVector<'frame>
[src]
impl<'scope> Debug for SimpleVector<'scope>
[src]
impl<'frame> Eq for SimpleVector<'frame>
[src]
impl<'frame> Hash for SimpleVector<'frame>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'frame> Into<Value<'frame, 'static>> for SimpleVector<'frame>
[src]
impl<'frame> JuliaType for SimpleVector<'frame>
[src]
unsafe fn julia_type() -> *mut jl_datatype_t
[src]
impl<'frame> JuliaTypecheck for SimpleVector<'frame>
[src]
unsafe fn julia_typecheck(t: DataType<'_>) -> bool
[src]
impl<'frame> PartialEq<SimpleVector<'frame>> for SimpleVector<'frame>
[src]
fn eq(&self, other: &SimpleVector<'frame>) -> bool
[src]
fn ne(&self, other: &SimpleVector<'frame>) -> bool
[src]
impl<'frame> StructuralEq for SimpleVector<'frame>
[src]
impl<'frame> StructuralPartialEq for SimpleVector<'frame>
[src]
impl<'frame> ValidLayout for SimpleVector<'frame>
[src]
unsafe fn valid_layout(v: Value<'_, '_>) -> bool
[src]
Auto Trait Implementations
impl<'frame> RefUnwindSafe for SimpleVector<'frame>
impl<'frame> !Send for SimpleVector<'frame>
impl<'frame> !Sync for SimpleVector<'frame>
impl<'frame> Unpin for SimpleVector<'frame>
impl<'frame> UnwindSafe for SimpleVector<'frame>
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>,