Enum rustc_builtin_macros::format::ast::FormatCount
source · [−]pub enum FormatCount {
Literal(usize),
Argument(FormatArgPosition),
}
Variants
Literal(usize)
{:5}
or {:.5}
Argument(FormatArgPosition)
{:.*}
, {:.5$}
, or {:a$}
, etc.
Trait Implementations
sourceimpl Clone for FormatCount
impl Clone for FormatCount
sourcefn clone(&self) -> FormatCount
fn clone(&self) -> FormatCount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FormatCount
impl Debug for FormatCount
sourceimpl PartialEq<FormatCount> for FormatCount
impl PartialEq<FormatCount> for FormatCount
sourcefn eq(&self, other: &FormatCount) -> bool
fn eq(&self, other: &FormatCount) -> bool
impl Eq for FormatCount
impl StructuralEq for FormatCount
impl StructuralPartialEq for FormatCount
Auto Trait Implementations
impl RefUnwindSafe for FormatCount
impl !Send for FormatCount
impl !Sync for FormatCount
impl Unpin for FormatCount
impl UnwindSafe for FormatCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Literal
: 16 bytesArgument
: 32 bytes