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>) -> ArrayObj<T>
pub fn with_raw_data(data: Vec<T>) -> ArrayObj<T>
pub fn len(&self) -> usize
pub fn borrow_data_mut(&self) -> RefMut<'_, Vec<T>>
pub fn borrow_data(&self) -> Ref<'_, Vec<T>>
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) -> RuntimeResult<GosValue>
pub fn set(&self, i: usize, val: &GosValue) -> RuntimeResult<()>
pub fn size_of_data(&self) -> usize
Trait Implementations§
source§impl<T> Ord for ArrayObj<T>where
T: Element + PartialEq + Ord,
impl<T> Ord for ArrayObj<T>where T: Element + PartialEq + Ord,
source§impl<T> PartialEq<ArrayObj<T>> for ArrayObj<T>where
T: Element + PartialEq,
impl<T> PartialEq<ArrayObj<T>> for ArrayObj<T>where T: Element + PartialEq,
source§impl<T> PartialOrd<ArrayObj<T>> for ArrayObj<T>where
T: Element + PartialEq + Ord,
impl<T> PartialOrd<ArrayObj<T>> for ArrayObj<T>where T: Element + PartialEq + 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 moreimpl<T> Eq for ArrayObj<T>where T: Element + PartialEq,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ArrayObj<T>
impl<T> Send for ArrayObj<T>where T: Send,
impl<T> !Sync for ArrayObj<T>
impl<T> Unpin for ArrayObj<T>where T: Unpin,
impl<T> UnwindSafe for ArrayObj<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more