pub struct Array { /* private fields */ }
Expand description
Represents a multidimensional array.
Implementations§
Source§impl Array
impl Array
Sourcepub fn new(subtype: ExprType, dimensions: Vec<usize>) -> Self
pub fn new(subtype: ExprType, 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 Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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