[][src]Struct nixterm::terminfo::lang::printf::PrintfArgs

pub struct PrintfArgs {
    pub left_align: bool,
    pub show_sign: bool,
    pub pad_sign: bool,
    pub alt: bool,
    pub width: Option<usize>,
    pub prec: Option<usize>,
    pub character: char,
}

Fields

left_align: boolshow_sign: boolpad_sign: boolalt: boolwidth: Option<usize>prec: Option<usize>character: char

Methods

impl PrintfArgs[src]

pub fn parse(src: &[u8]) -> Result<PrintfArgs>[src]

pub fn write_number<W: Write>(&self, w: &mut W, num: i64) -> Result<usize>[src]

pub fn write_string<W: Write>(&self, w: &mut W, s: &str) -> Result<usize>[src]

pub fn write_char<W: Write>(&self, w: &mut W, c: u8) -> Result<usize>[src]

pub fn print<T: Into<Argument>, W: Write>(
    &self,
    w: &mut W,
    arg: Option<T>
) -> Result<usize>
[src]

Trait Implementations

impl PartialEq<PrintfArgs> for PrintfArgs[src]

impl Eq for PrintfArgs[src]

impl Default for PrintfArgs[src]

impl Clone for PrintfArgs[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PrintfArgs[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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