pub struct ArrayObj<T> { /* private fields */ }Implementations§
source§impl<T> ArrayObj<T>where
    T: Element,
 
impl<T> ArrayObj<T>where T: Element,
pub fn with_data(data: Vec<GosValue, Global>) -> ArrayObj<T>
pub fn with_raw_data(data: Vec<T, Global>) -> ArrayObj<T>
pub fn len(&self) -> usize
pub fn borrow_data_mut(&self) -> RefMut<'_, Vec<T, Global>>
pub fn borrow_data(&self) -> Ref<'_, Vec<T, Global>>
pub fn as_rust_slice(&self) -> Ref<'_, [T]>
pub fn as_rust_slice_mut(&self) -> RefMut<'_, [T]>
pub fn index_elem(&self, i: usize) -> T
pub fn get(&self, i: usize, t: ValueType) -> Result<GosValue, RuntimeError>
pub fn set(&self, i: usize, val: &GosValue) -> Result<(), RuntimeError>
pub fn size_of_data(&self) -> usize
Trait Implementations§
source§impl<T> Ord for ArrayObj<T>where
    T: Element + PartialEq<T> + Ord,
 
impl<T> Ord for ArrayObj<T>where T: Element + PartialEq<T> + Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<ArrayObj<T>> for ArrayObj<T>where
    T: Element + PartialEq<T>,
 
impl<T> PartialEq<ArrayObj<T>> for ArrayObj<T>where T: Element + PartialEq<T>,
source§impl<T> PartialOrd<ArrayObj<T>> for ArrayObj<T>where
    T: Element + PartialEq<T> + Ord,
 
impl<T> PartialOrd<ArrayObj<T>> for ArrayObj<T>where T: Element + PartialEq<T> + Ord,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read more