#[non_exhaustive]pub struct FormatSpec { /* private fields */ }
Expand description
A format specification.
Implementations§
Source§impl FormatSpec
impl FormatSpec
Sourcepub fn new(
flags: Flags,
fill: char,
align: Alignment,
width: Option<NonZeroUsize>,
precision: Option<NonZeroUsize>,
format_type: Type,
) -> Self
pub fn new( flags: Flags, fill: char, align: Alignment, width: Option<NonZeroUsize>, precision: Option<NonZeroUsize>, format_type: Type, ) -> Self
Construct a new format specification.
Trait Implementations§
Source§impl Clone for FormatSpec
impl Clone for FormatSpec
Source§fn clone(&self) -> FormatSpec
fn clone(&self) -> FormatSpec
Returns a copy 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 FormatSpec
impl Debug for FormatSpec
Source§impl<'de> Decode<'de, Binary> for FormatSpec
impl<'de> Decode<'de, Binary> for FormatSpec
Source§impl<'de> Decode<'de, Text> for FormatSpec
impl<'de> Decode<'de, Text> for FormatSpec
Source§impl<'de> Deserialize<'de> for FormatSpec
impl<'de> Deserialize<'de> for FormatSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FormatSpec
impl Display for FormatSpec
Source§impl Encode<Binary> for FormatSpec
impl Encode<Binary> for FormatSpec
Source§impl Encode<Text> for FormatSpec
impl Encode<Text> for FormatSpec
Source§impl Serialize for FormatSpec
impl Serialize for FormatSpec
Source§impl TryClone for FormatSpec
impl TryClone for FormatSpec
impl Copy for FormatSpec
Auto Trait Implementations§
impl Freeze for FormatSpec
impl RefUnwindSafe for FormatSpec
impl Send for FormatSpec
impl Sync for FormatSpec
impl Unpin for FormatSpec
impl UnwindSafe for FormatSpec
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)