Struct NumVecM

Source
pub struct NumVecM<T: SEXPbucket> { /* private fields */ }

Implementations§

Source§

impl<T: SEXPbucket> NumVecM<T>

Source

pub fn new(x: SEXP) -> RResult<NumVecM<T>>

Source

pub fn alloc(x: usize) -> NumVecM<T>

Source

pub fn alloc_matrix(x: usize, y: usize) -> NumVecM<T>

Source

pub fn at(&self, ind: usize) -> Option<c_double>

Source

pub fn set(&mut self, ind: usize, value: c_double) -> RResult<()>

Source

pub unsafe fn uat(&self, ind: usize) -> c_double

Source

pub unsafe fn uset(&mut self, ind: usize, value: c_double)

Source

pub fn range(&self, ind: Range<usize>) -> Option<Vec<c_double>>

Source

pub fn is_duplicated(&self, from_last: bool) -> R_xlen_t

Trait Implementations§

Source§

impl<T: SEXPbucket> Clone for NumVecM<T>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + SEXPbucket> Debug for NumVecM<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: SEXPbucket> From<NumVecM<T>> for Vec<c_double>

Source§

fn from(x: NumVecM<T>) -> Vec<c_double>

Converts to this type from the input type.
Source§

impl<T: SEXPbucket, E: Into<c_double> + Clone> From<Vec<E>> for NumVecM<T>

Source§

fn from(x: Vec<E>) -> NumVecM<T>

Converts to this type from the input type.
Source§

impl<T: SEXPbucket> IntoIterator for NumVecM<T>

Source§

type Item = f64

The type of the elements being iterated over.
Source§

type IntoIter = NumVecIter<T>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T: SEXPbucket> IntoR for NumVecM<T>

Source§

fn intor(&self) -> RResult<SEXP>

Source§

impl<T: SEXPbucket> Named for NumVecM<T>

Source§

fn named(&self) -> bool

Source§

fn name(&self) -> SEXP

Source§

impl<T: SEXPbucket> RAttribute for NumVecM<T>

Source§

fn get_attr<D: RNew, S: SEXPbucket, EE: Into<SymbolM<S>>>( &self, name: EE, ) -> RResult<D>

Source§

fn set_attr<T: ToSEXP, EE: Into<SymbolM<S>>, S: SEXPbucket>( &self, name: EE, attr: T, )

Source§

fn attribute_names(&self) -> Vec<CString>

Source§

fn has_attribute(&self, attr: &str) -> bool

Source§

fn attributte<D: RNew>(&self) -> RResult<D>

Source§

impl<T: SEXPbucket> RDim for NumVecM<T>

Source§

type Output = f64

Source§

fn dim(&self) -> Vec<usize>

Source§

fn set_dim(&mut self, x: &[usize]) -> RResult<()>

Source§

fn nrow(&self) -> usize

Source§

fn ncol(&self) -> usize

Source§

fn dimnamec(&self, side: usize) -> Vec<CString>

Source§

fn dimname(&self, side: usize) -> RResult<Vec<String>>

Source§

fn set_dimname(&mut self, side: usize, x: &[String]) -> RResult<()>

Source§

impl<T: SEXPbucket> RName for NumVecM<T>

Source§

fn get_name<D: RNew>(&self) -> RResult<D>

Source§

fn name(&self) -> CharVec

Source§

unsafe fn namesexp(&self) -> SEXP

Source§

fn set_name(&self, attr: &CharVec) -> RResult<()>

Source§

unsafe fn uset_name(&self, attr: &CharVec)

Source§

impl<T: SEXPbucket> RNew for NumVecM<T>

Source§

fn rnew(x: SEXP) -> RResult<Self>

Source§

impl<T: SEXPbucket> RObjClass for NumVecM<T>

Source§

impl<T: SEXPbucket> RSize for NumVecM<T>

Source§

fn rsize(&self) -> R_xlen_t

Source§

impl<T: SEXPbucket> RSlot for NumVecM<T>

Source§

fn get_slot<D: RNew>(&self, slot: &str) -> RResult<D>

Source§

fn set_slot<T: ToSEXP, D: RNew>(&self, slot: &str, x: T) -> RResult<D>

Source§

fn has_slot(&self, slot: &str) -> RResult<bool>

Source§

impl<T: SEXPbucket> SetSelf for NumVecM<T>

Source§

fn set(&mut self, x: Self)

Source§

impl<T: SEXPbucket> Shallow for NumVecM<T>

Source§

fn sc(&self) -> Self

Source§

fn sclone_from(&mut self, source: &Self)

Source§

impl<T: SEXPbucket> ToSEXP for NumVecM<T>

Source§

unsafe fn s(&self) -> SEXP

Source§

fn rtype(&self) -> Rtype

Source§

unsafe fn t(&self) -> Rtemp

Source§

fn print(&self)

Source§

fn is_null(&self) -> bool

Source§

fn is_object(&self) -> bool

Source§

fn is_s4(&self) -> bool

Source§

fn is_array(&self) -> bool

Source§

fn is_factor(&self) -> bool

Source§

fn is_frame(&self) -> bool

Source§

fn is_function(&self) -> bool

Source§

fn is_integer(&self) -> bool

Source§

fn is_language(&self) -> bool

Source§

fn is_list(&self) -> bool

Source§

fn is_matrix(&self) -> bool

Source§

fn is_newlist(&self) -> bool

Source§

fn is_number(&self) -> bool

Source§

fn is_numeric(&self) -> bool

Source§

fn is_pairlist(&self) -> bool

Source§

fn is_primitive(&self) -> bool

Source§

fn is_ts(&self) -> bool

Source§

fn is_userbinop(&self) -> bool

Source§

fn is_validstring(&self) -> bool

Source§

fn is_validstringf(&self) -> bool

Source§

fn is_vector(&self) -> bool

Source§

fn is_vectoratomic(&self) -> bool

Source§

fn is_vectorlist(&self) -> bool

Source§

fn is_vectorizable(&self) -> bool

Source§

fn is_ordered(&self) -> bool

Source§

fn is_unordered(&self) -> bool

Source§

fn is_data_frame(&self) -> bool

Source§

impl<T: SEXPbucket> UIntoR for NumVecM<T>

Source§

unsafe fn uintor(&self) -> SEXP

Source§

impl<T: SEXPbucket> URNew for NumVecM<T>

Source§

unsafe fn urnew(x: SEXP) -> Self

Auto Trait Implementations§

§

impl<T> Freeze for NumVecM<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for NumVecM<T>
where T: RefUnwindSafe,

§

impl<T> Send for NumVecM<T>
where T: Send,

§

impl<T> Sync for NumVecM<T>
where T: Sync,

§

impl<T> Unpin for NumVecM<T>
where T: Unpin,

§

impl<T> UnwindSafe for NumVecM<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Args for T
where T: Named,