Struct fast_fmt::transform::Transformed
[−]
[src]
pub struct Transformed<V, T: Transform> { /* fields omitted */ }
Transformation attached to a value, transforming given vale when formatting.
Methods
impl<V, T: Transform> Transformed<V, T>
[src]
fn new(value: V, transformation: T) -> Self
Attaches transformation to the value.
Trait Implementations
impl<S, V: Fmt<S>, T: Transform> Fmt<S> for Transformed<V, T>
[src]
fn fmt<W: Write>(&self, writer: &mut W, strategy: &S) -> Result<(), W::Error>
The implementor should write itself into writer
inside this function.
fn size_hint(&self, strategy: &S) -> usize
The implementor should estimate how many bytes would it's representation have in UTF-8 if formated using specific strategy. Read more
fn transformed<T: Transform>(self, transformation: T) -> Transformed<Self, T> where
Self: Sized,
Self: Sized,
Combinator for transforming the value,