pub struct SimpleContext {
pub parenthesize_negatives: bool,
pub implicit_multiplication: bool,
pub float_precision: Option<usize>,
pub use_unicode: bool,
}Expand description
Simple formatting context
Fields§
§parenthesize_negatives: boolWhether to use parentheses around negative numbers
implicit_multiplication: boolWhether to use implicit multiplication (2x vs 2*x)
float_precision: Option<usize>Maximum precision for floating point numbers
use_unicode: boolWhether to use Unicode symbols (× instead of *)
Trait Implementations§
Source§impl Clone for SimpleContext
impl Clone for SimpleContext
Source§fn clone(&self) -> SimpleContext
fn clone(&self) -> SimpleContext
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleContext
impl Debug for SimpleContext
Source§impl Default for SimpleContext
impl Default for SimpleContext
Source§fn default() -> SimpleContext
fn default() -> SimpleContext
Returns the “default value” for a type. Read more
Source§impl FormattingContext for SimpleContext
impl FormattingContext for SimpleContext
fn target_format(&self) -> MathLanguage
Auto Trait Implementations§
impl Freeze for SimpleContext
impl RefUnwindSafe for SimpleContext
impl Send for SimpleContext
impl Sync for SimpleContext
impl Unpin for SimpleContext
impl UnwindSafe for SimpleContext
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more