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>
sourcepub fn debug_display<T: Debug + Display>(value: &'a T) -> Self
Available on crate feature debug
only.
pub fn debug_display<T: Debug + Display>(value: &'a T) -> Self
debug
only.Creates a Formattable
from a value implementing
Debug
and Display
sourcepub fn and_debug_display<T: Debug + Display>(self, value: &'a T) -> Self
Available on crate feature debug
only.
pub fn and_debug_display<T: Debug + Display>(self, value: &'a T) -> Self
debug
only.sourcepub fn set_debug_display<T: Debug + Display>(&mut self, value: &'a T)
Available on crate feature debug
only.
pub fn set_debug_display<T: Debug + Display>(&mut self, value: &'a T)
debug
only.sourcepub fn debug<T: Debug>(value: &'a T) -> Self
Available on crate feature debug
only.
pub fn debug<T: Debug>(value: &'a T) -> Self
debug
only.Creates a Formattable
from a value implementing
Debug
sourcepub fn and_debug<T: Debug>(self, value: &'a T) -> Self
Available on crate feature debug
only.
pub fn and_debug<T: Debug>(self, value: &'a T) -> Self
debug
only.Adds implementation for
Debug
sourcepub fn set_debug<T: Debug>(&mut self, value: &'a T)
Available on crate feature debug
only.
pub fn set_debug<T: Debug>(&mut self, value: &'a T)
debug
only.Sets implementation for
Debug
sourcepub fn display<T: Display>(value: &'a T) -> Self
pub fn display<T: Display>(value: &'a T) -> Self
Creates a Formattable
from a value implementing
Display
sourcepub fn and_display<T: Display>(self, value: &'a T) -> Self
pub fn and_display<T: Display>(self, value: &'a T) -> Self
Adds implementation for
Display
sourcepub fn set_display<T: Display>(&mut self, value: &'a T)
pub fn set_display<T: Display>(&mut self, value: &'a T)
Sets implementation for
Display
sourcepub fn integer<T: Binary + Debug + Display + LowerExp + LowerHex + Octal + UpperExp + UpperHex>(
value: &'a T
) -> Self
Available on crate feature number
only.
pub fn integer<T: Binary + Debug + Display + LowerExp + LowerHex + Octal + UpperExp + UpperHex>( value: &'a T ) -> Self
number
only.sourcepub fn and_integer<T: Binary + Debug + Display + LowerExp + LowerHex + Octal + UpperExp + UpperHex>(
self,
value: &'a T
) -> Self
Available on crate feature number
only.
pub fn and_integer<T: Binary + Debug + Display + LowerExp + LowerHex + Octal + UpperExp + UpperHex>( self, value: &'a T ) -> Self
number
only.sourcepub fn set_integer<T: Binary + Debug + Display + LowerExp + LowerHex + Octal + UpperExp + UpperHex>(
&mut self,
value: &'a T
)
Available on crate feature number
only.
pub fn set_integer<T: Binary + Debug + Display + LowerExp + LowerHex + Octal + UpperExp + UpperHex>( &mut self, value: &'a T )
number
only.sourcepub fn float<T: Debug + Display + LowerExp + UpperExp>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn float<T: Debug + Display + LowerExp + UpperExp>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
Debug
, Display
, LowerExp
and UpperExp
sourcepub fn and_float<T: Debug + Display + LowerExp + UpperExp>(
self,
value: &'a T
) -> Self
Available on crate feature number
only.
pub fn and_float<T: Debug + Display + LowerExp + UpperExp>( self, value: &'a T ) -> Self
number
only.sourcepub fn set_float<T: Debug + Display + LowerExp + UpperExp>(
&mut self,
value: &'a T
)
Available on crate feature number
only.
pub fn set_float<T: Debug + Display + LowerExp + UpperExp>( &mut self, value: &'a T )
number
only.sourcepub fn binary<T: Binary>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn binary<T: Binary>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
Binary
sourcepub fn and_binary<T: Binary>(self, value: &'a T) -> Self
Available on crate feature number
only.
pub fn and_binary<T: Binary>(self, value: &'a T) -> Self
number
only.Adds implementation for
Binary
sourcepub fn set_binary<T: Binary>(&mut self, value: &'a T)
Available on crate feature number
only.
pub fn set_binary<T: Binary>(&mut self, value: &'a T)
number
only.Sets implementation for
Binary
sourcepub fn lower_exp<T: LowerExp>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn lower_exp<T: LowerExp>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
LowerExp
sourcepub fn and_lower_exp<T: LowerExp>(self, value: &'a T) -> Self
Available on crate feature number
only.
pub fn and_lower_exp<T: LowerExp>(self, value: &'a T) -> Self
number
only.Adds implementation for
LowerExp
sourcepub fn set_lower_exp<T: LowerExp>(&mut self, value: &'a T)
Available on crate feature number
only.
pub fn set_lower_exp<T: LowerExp>(&mut self, value: &'a T)
number
only.Sets implementation for
LowerExp
sourcepub fn lower_hex<T: LowerHex>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn lower_hex<T: LowerHex>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
LowerHex
sourcepub fn and_lower_hex<T: LowerHex>(self, value: &'a T) -> Self
Available on crate feature number
only.
pub fn and_lower_hex<T: LowerHex>(self, value: &'a T) -> Self
number
only.Adds implementation for
LowerHex
sourcepub fn set_lower_hex<T: LowerHex>(&mut self, value: &'a T)
Available on crate feature number
only.
pub fn set_lower_hex<T: LowerHex>(&mut self, value: &'a T)
number
only.Sets implementation for
LowerHex
sourcepub fn octal<T: Octal>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn octal<T: Octal>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
Octal
sourcepub fn and_octal<T: Octal>(self, value: &'a T) -> Self
Available on crate feature number
only.
pub fn and_octal<T: Octal>(self, value: &'a T) -> Self
number
only.Adds implementation for
Octal
sourcepub fn set_octal<T: Octal>(&mut self, value: &'a T)
Available on crate feature number
only.
pub fn set_octal<T: Octal>(&mut self, value: &'a T)
number
only.Sets implementation for
Octal
sourcepub fn upper_exp<T: UpperExp>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn upper_exp<T: UpperExp>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
UpperExp
sourcepub fn and_upper_exp<T: UpperExp>(self, value: &'a T) -> Self
Available on crate feature number
only.
pub fn and_upper_exp<T: UpperExp>(self, value: &'a T) -> Self
number
only.Adds implementation for
UpperExp
sourcepub fn set_upper_exp<T: UpperExp>(&mut self, value: &'a T)
Available on crate feature number
only.
pub fn set_upper_exp<T: UpperExp>(&mut self, value: &'a T)
number
only.Sets implementation for
UpperExp
sourcepub fn upper_hex<T: UpperHex>(value: &'a T) -> Self
Available on crate feature number
only.
pub fn upper_hex<T: UpperHex>(value: &'a T) -> Self
number
only.Creates a Formattable
from a value implementing
UpperHex
sourcepub fn and_upper_hex<T: UpperHex>(self, value: &'a T) -> Self
Available on crate feature number
only.
pub fn and_upper_hex<T: UpperHex>(self, value: &'a T) -> Self
number
only.Adds implementation for
UpperHex
sourcepub fn set_upper_hex<T: UpperHex>(&mut self, value: &'a T)
Available on crate feature number
only.
pub fn set_upper_hex<T: UpperHex>(&mut self, value: &'a T)
number
only.Sets implementation for
UpperHex
source§impl<'a> Formattable<'a>
impl<'a> Formattable<'a>
sourcepub fn pointer<T: Pointer>(value: &'a T) -> Self
Available on crate feature pointer
only.
pub fn pointer<T: Pointer>(value: &'a T) -> Self
pointer
only.Creates a Formattable
from a value implementing Pointer
.
sourcepub fn and_pointer<T: Pointer>(self, value: &'a T) -> Self
Available on crate feature pointer
only.
pub fn and_pointer<T: Pointer>(self, value: &'a T) -> Self
pointer
only.Adds implementation for Pointer
sourcepub fn set_pointer<T: Pointer>(&mut self, value: &'a T)
Available on crate feature pointer
only.
pub fn set_pointer<T: Pointer>(&mut self, value: &'a T)
pointer
only.Sets implementation for Pointer
source§impl<'a> Formattable<'a>
impl<'a> Formattable<'a>
sourcepub fn iter(value: &'a [Formattable<'a>]) -> Self
Available on crate feature iter
only.
pub fn iter(value: &'a [Formattable<'a>]) -> Self
iter
only.Creates a Formattable
from a list of values
sourcepub fn and_iter(self, value: &'a [Formattable<'a>]) -> Self
Available on crate feature iter
only.
pub fn and_iter(self, value: &'a [Formattable<'a>]) -> Self
iter
only.Adds implementation for mapping operations
sourcepub fn set_iter(&mut self, value: &'a [Formattable<'a>])
Available on crate feature iter
only.
pub fn set_iter(&mut self, value: &'a [Formattable<'a>])
iter
only.Sets 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>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more