Struct endbasic_core::syms::Array
source · [−]pub struct Array { /* private fields */ }
Expand description
Represents a multidimensional array.
Implementations
sourceimpl Array
impl Array
sourcepub fn new(subtype: VarType, dimensions: Vec<usize>) -> Self
pub fn new(subtype: VarType, dimensions: Vec<usize>) -> Self
Creates a new array of the given subtype
and dimensions
.
sourcepub fn dimensions(&self) -> &[usize]
pub fn dimensions(&self) -> &[usize]
Returns the dimensions of the array.
Trait Implementations
impl StructuralPartialEq for Array
Auto Trait Implementations
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more