pub struct CharArray {
pub data: Vec<char>,
pub rows: usize,
pub cols: usize,
}Fields§
§data: Vec<char>§rows: usize§cols: usizeImplementations§
Source§impl CharArray
impl CharArray
pub fn new_row(s: &str) -> Self
pub fn new(data: Vec<char>, rows: usize, cols: usize) -> Result<Self, String>
Sourcepub fn row_string(&self) -> Option<String>
pub fn row_string(&self) -> Option<String>
Return the character contents when this value is a MATLAB character
row vector. Display intentionally renders arrays for the console and
therefore includes layout whitespace; semantic string conversions must
use this method instead.
Trait Implementations§
impl StructuralPartialEq for CharArray
Auto Trait Implementations§
impl Freeze for CharArray
impl RefUnwindSafe for CharArray
impl Send for CharArray
impl Sync for CharArray
impl Unpin for CharArray
impl UnsafeUnpin for CharArray
impl UnwindSafe for CharArray
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