[−][src]Enum rustc_parse_format::Count

pub enum Count {
    CountIs(usize),
    CountIsName(Symbol),
    CountIsParam(usize),
    CountImplied,
}

A count is used for the precision and width parameters of an integer, and can reference either an argument or a literal integer.

Variants

CountIs(usize)

The count is specified explicitly.

CountIsName(Symbol)

The count is specified by the argument with the given name.

CountIsParam(usize)

The count is specified by the argument at the given index.

CountImplied

The count is implied and cannot be explicitly specified.

Trait Implementations

impl Clone for Count[src]

impl Copy for Count[src]

impl Debug for Count[src]

impl PartialEq<Count> for Count[src]

impl StructuralPartialEq for Count[src]

Auto Trait Implementations

impl RefUnwindSafe for Count

impl Send for Count

impl Sync for Count

impl Unpin for Count

impl UnwindSafe for Count

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.