#[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, __A> Decode<'__de, Binary, __A> for FormatSpecwhere
__A: Allocator,
impl<'__de, __A> Decode<'__de, Binary, __A> for FormatSpecwhere
__A: Allocator,
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'__de, __A> Decode<'__de, Text, __A> for FormatSpecwhere
__A: Allocator,
impl<'__de, __A> Decode<'__de, Text, __A> for FormatSpecwhere
__A: Allocator,
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
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§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = FormatSpec
type Encode = FormatSpec
The underlying type being encoded. Read more
Source§impl Encode<Text> for FormatSpec
impl Encode<Text> for FormatSpec
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = FormatSpec
type Encode = FormatSpec
The underlying type being encoded. Read more
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