Struct stylish_core::Arguments
source · [−]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
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Arguments<'a>
impl<'a> !Send for Arguments<'a>
impl<'a> !Sync for Arguments<'a>
impl<'a> Unpin for Arguments<'a>
impl<'a> !UnwindSafe for Arguments<'a>
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