pub struct CellArray {
pub data: Vec<GcPtr<Value>>,
pub shape: Vec<usize>,
pub rows: usize,
pub cols: usize,
}Fields§
§data: Vec<GcPtr<Value>>§shape: Vec<usize>Full MATLAB-visible shape vector (column-major semantics).
rows: usizeCached row count for 2-D interop; equals shape[0] when present.
cols: usizeCached column count for 2-D interop; equals shape[1] when present, otherwise 1 (or 0 for empty).
Implementations§
Source§impl CellArray
impl CellArray
pub fn new_handles( handles: Vec<GcPtr<Value>>, rows: usize, cols: usize, ) -> Result<Self, String>
pub fn new_handles_with_shape( handles: Vec<GcPtr<Value>>, shape: Vec<usize>, ) -> Result<Self, String>
pub fn new(data: Vec<Value>, rows: usize, cols: usize) -> Result<Self, String>
pub fn new_with_shape( data: Vec<Value>, shape: Vec<usize>, ) -> Result<Self, String>
pub fn get(&self, row: usize, col: usize) -> Result<Value, String>
Trait Implementations§
impl StructuralPartialEq for CellArray
Auto Trait Implementations§
impl Freeze for CellArray
impl RefUnwindSafe for CellArray
impl Send for CellArray
impl Sync for CellArray
impl Unpin for CellArray
impl UnwindSafe for CellArray
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