pub enum FormatMode {
Short,
Long,
ShortE,
LongE,
ShortG,
LongG,
Rational,
Hex,
}Expand description
Controls how numeric values are displayed in the console, mirroring MATLAB’s format command.
Variants§
Short
4 decimal places, fixed or scientific (MATLAB default).
Long
15 decimal places, fixed or scientific.
ShortE
Always scientific notation, 4 decimal places.
LongE
Always scientific notation, 14 decimal places.
ShortG
Compact: shorter of fixed/scientific, 5 significant digits.
LongG
Compact: shorter of fixed/scientific, 15 significant digits.
Rational
Rational approximation (p/q).
Hex
IEEE 754 hexadecimal representation.
Trait Implementations§
Source§impl Clone for FormatMode
impl Clone for FormatMode
Source§fn clone(&self) -> FormatMode
fn clone(&self) -> FormatMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatMode
impl Debug for FormatMode
Source§impl Default for FormatMode
impl Default for FormatMode
Source§fn default() -> FormatMode
fn default() -> FormatMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for FormatMode
impl PartialEq for FormatMode
Source§fn eq(&self, other: &FormatMode) -> bool
fn eq(&self, other: &FormatMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FormatMode
impl StructuralPartialEq for FormatMode
Auto Trait Implementations§
impl Freeze for FormatMode
impl RefUnwindSafe for FormatMode
impl Send for FormatMode
impl Sync for FormatMode
impl Unpin for FormatMode
impl UnsafeUnpin for FormatMode
impl UnwindSafe for FormatMode
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