pub enum MatlabLiteral {
Double(f64),
Integer(i64),
Logical(bool),
Char(String),
Str(String),
Empty,
NaN,
Inf(bool),
Pi,
Eps,
}Expand description
Literal values in MATLAB.
Variants§
Double(f64)
42 or 42.0
Integer(i64)
42 integer literal (will cast)
Logical(bool)
true / false
Char(String)
'hello' char array
Str(String)
"hello" string (R2016b+)
Empty
[] empty array / matrix
NaN
NaN
Inf(bool)
Inf / -Inf
Pi
pi
Eps
eps
Trait Implementations§
Source§impl Clone for MatlabLiteral
impl Clone for MatlabLiteral
Source§fn clone(&self) -> MatlabLiteral
fn clone(&self) -> MatlabLiteral
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatlabLiteral
impl Debug for MatlabLiteral
Source§impl Display for MatlabLiteral
impl Display for MatlabLiteral
Source§impl PartialEq for MatlabLiteral
impl PartialEq for MatlabLiteral
impl StructuralPartialEq for MatlabLiteral
Auto Trait Implementations§
impl Freeze for MatlabLiteral
impl RefUnwindSafe for MatlabLiteral
impl Send for MatlabLiteral
impl Sync for MatlabLiteral
impl Unpin for MatlabLiteral
impl UnsafeUnpin for MatlabLiteral
impl UnwindSafe for MatlabLiteral
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