[−][src]Enum rustc_builtin_macros::format_foreign::printf::Num

pub enum Num {
    Num(u16),
    Arg(u16),
    Next,
}

A general number used in a printf formatting directive.

Variants

Num(u16)

A specific, fixed value.

Arg(u16)

The value is derived from a positional argument.

Next

The value is derived from the "next" unconverted argument.

Implementations

impl Num[src]

pub(in format_foreign::printf) fn from_str(
    s: &str,
    arg: Option<&str>
) -> Self
[src]

pub(in format_foreign::printf) fn translate(
    &self,
    s: &mut String
) -> Result
[src]

Trait Implementations

impl Clone for Num[src]

impl Copy for Num[src]

impl Debug for Num[src]

impl PartialEq<Num> for Num[src]

impl StructuralPartialEq for Num[src]

Auto Trait Implementations

impl RefUnwindSafe for Num

impl Send for Num

impl Sync for Num

impl Unpin for Num

impl UnwindSafe for Num

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.