pub struct Args<'k> { /* private fields */ }
Expand description
This is an easy way to build an argument mapping for the template application
method
The key must be a &str
while the value can be any std::fmt::Display
trait object
note The keys are unique, duplicates will be replaced by the last one
let args = Args::new()
.with("key1", &false)
.with("key2", &"message")
.with("key3", &41)
.with("key3", &42);
Implementations§
Trait Implementations§
Source§impl<'k, K, V> FromIterator<(K, V)> for Args<'k>
impl<'k, K, V> FromIterator<(K, V)> for Args<'k>
Source§impl<'k> IntoIterator for Args<'k>
impl<'k> IntoIterator for Args<'k>
Auto Trait Implementations§
impl<'k> Freeze for Args<'k>
impl<'k> RefUnwindSafe for Args<'k>
impl<'k> Send for Args<'k>
impl<'k> Sync for Args<'k>
impl<'k> Unpin for Args<'k>
impl<'k> UnwindSafe for Args<'k>
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