Struct interpolator::Formattable
source · pub struct Formattable<'a> { /* private fields */ }
Expand description
Utility struct holding references to the trait implementation of a value to enable runtime verification and execution of them
Implementations§
source§impl<'a> Formattable<'a>
impl<'a> Formattable<'a>
source§impl<'a> Formattable<'a>
impl<'a> Formattable<'a>
sourcepub fn iter(value: &'a [Formattable<'a>]) -> Self
pub fn iter(value: &'a [Formattable<'a>]) -> Self
Creates a Formattable
from a list of values
sourcepub fn and_iter(self, value: &'a [Formattable<'a>]) -> Self
pub fn and_iter(self, value: &'a [Formattable<'a>]) -> Self
Adds implementation for mapping operations
Trait Implementations§
source§impl<'a> Clone for Formattable<'a>
impl<'a> Clone for Formattable<'a>
source§fn clone(&self) -> Formattable<'a>
fn clone(&self) -> Formattable<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Default for Formattable<'a>
impl<'a> Default for Formattable<'a>
source§fn default() -> Formattable<'a>
fn default() -> Formattable<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for Formattable<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Formattable<'a>
impl<'a> !Send for Formattable<'a>
impl<'a> !Sync for Formattable<'a>
impl<'a> Unpin for Formattable<'a>
impl<'a> !UnwindSafe for Formattable<'a>
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