pub struct NumfmtConfig {Show 14 fields
pub from: ScaleUnit,
pub to: ScaleUnit,
pub from_unit: f64,
pub to_unit: f64,
pub padding: Option<i32>,
pub round: RoundMethod,
pub suffix: Option<String>,
pub format: Option<String>,
pub field: Vec<usize>,
pub delimiter: Option<char>,
pub header: usize,
pub invalid: InvalidMode,
pub grouping: bool,
pub zero_terminated: bool,
}Expand description
Configuration for the numfmt command.
Fields§
§from: ScaleUnit§to: ScaleUnit§from_unit: f64§to_unit: f64§padding: Option<i32>§round: RoundMethod§suffix: Option<String>§format: Option<String>§field: Vec<usize>§delimiter: Option<char>§header: usize§invalid: InvalidMode§grouping: bool§zero_terminated: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for NumfmtConfig
impl RefUnwindSafe for NumfmtConfig
impl Send for NumfmtConfig
impl Sync for NumfmtConfig
impl Unpin for NumfmtConfig
impl UnsafeUnpin for NumfmtConfig
impl UnwindSafe for NumfmtConfig
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
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