pub struct CFormatSpec {
pub flags: CConversionFlags,
pub min_field_width: Option<CFormatQuantity>,
pub precision: Option<CFormatPrecision>,
pub format_type: CFormatType,
}Fields§
§flags: CConversionFlags§min_field_width: Option<CFormatQuantity>§precision: Option<CFormatPrecision>§format_type: CFormatTypeImplementations§
Source§impl CFormatSpec
impl CFormatSpec
pub fn format_string<T: FormatBuf>(&self, string: T) -> T
pub fn format_char<T: FormatBuf>(&self, ch: T::Char) -> T
pub fn format_bytes(&self, bytes: &[u8]) -> Vec<u8> ⓘ
pub fn format_number(&self, num: &BigInt) -> String
pub fn format_float(&self, num: f64) -> String
Trait Implementations§
Source§impl Clone for CFormatSpec
impl Clone for CFormatSpec
Source§fn clone(&self) -> CFormatSpec
fn clone(&self) -> CFormatSpec
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 CFormatSpec
impl Debug for CFormatSpec
Source§impl PartialEq for CFormatSpec
impl PartialEq for CFormatSpec
impl Copy for CFormatSpec
impl StructuralPartialEq for CFormatSpec
Auto Trait Implementations§
impl Freeze for CFormatSpec
impl RefUnwindSafe for CFormatSpec
impl Send for CFormatSpec
impl Sync for CFormatSpec
impl Unpin for CFormatSpec
impl UnsafeUnpin for CFormatSpec
impl UnwindSafe for CFormatSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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