pub struct Fmt(pub &'static str);Expand description
Formats the input using a pattern string, producing a string literal.
The {} placeholder in the pattern is replaced with the input value.
Template usage: {{ name | fmt:"hello {}" }}
Tuple Fields§
§0: &'static strTrait Implementations§
Auto Trait Implementations§
impl Freeze for Fmt
impl RefUnwindSafe for Fmt
impl Send for Fmt
impl Sync for Fmt
impl Unpin for Fmt
impl UnsafeUnpin for Fmt
impl UnwindSafe for Fmt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more