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>
impl<T> Ord for ArrayObj<T>
Source§impl<T> PartialOrd for ArrayObj<T>
impl<T> PartialOrd for ArrayObj<T>
impl<T> Eq for ArrayObj<T>
Auto Trait Implementations§
impl<T> !Freeze for ArrayObj<T>
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