pub struct SliceObj<T> { /* private fields */ }
Implementations§
source§impl<T> SliceObj<T>where
T: Element,
impl<T> SliceObj<T>where T: Element,
pub fn with_array( arr: GosValue, begin: isize, end: isize ) -> RuntimeResult<SliceObj<T>>
pub fn array_obj(&self) -> &ArrayObj<T>
pub fn begin(&self) -> usize
pub fn end(&self) -> usize
pub fn len(&self) -> usize
pub fn cap(&self) -> usize
pub fn range(&self) -> Range<usize>
pub fn as_rust_slice(&self) -> Ref<'_, [T]>
pub fn as_rust_slice_mut(&self) -> RefMut<'_, [T]>
pub fn sharing_with(&self, other: &SliceObj<T>) -> bool
sourcepub fn get_array_equivalent(&self, i: usize) -> (&GosValue, usize)
pub fn get_array_equivalent(&self, i: usize) -> (&GosValue, usize)
get_array_equivalent returns the underlying array and mapped index