pub struct Arguments<'a> { /* private fields */ }
Expand description

A precompiled version of a format string and its by-reference arguments.

Currently this can only be constructed via stylish::format_args!, but it may be possible to dynamically construct this at runtime in the future.

let args = stylish::format_args!("{:(bg=red)} Will Robinson", "Danger");
assert_eq!(
    stylish::html::format!("{:s}", args),
    "<span style=background-color:red>Danger</span> Will Robinson",
);

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.