pub struct StringFormatMultiValueConverter { /* private fields */ }Expand description
A multi-value converter which formats the values with a composite format
string (see composite_format).
Implementations§
Source§impl StringFormatMultiValueConverter
impl StringFormatMultiValueConverter
Sourcepub fn new(
format: impl Into<String>,
inner: Option<Rc<dyn IMultiValueConverter>>,
) -> Self
pub fn new( format: impl Into<String>, inner: Option<Rc<dyn IMultiValueConverter>>, ) -> Self
Creates a string format multi-value converter.
format is the format string; inner is an optional inner converter
to be called before the format takes place.
Sourcepub fn inner(&self) -> Option<&Rc<dyn IMultiValueConverter>>
pub fn inner(&self) -> Option<&Rc<dyn IMultiValueConverter>>
Gets an inner value converter which will be called before the string format takes place.
Trait Implementations§
Source§impl IMultiValueConverter for StringFormatMultiValueConverter
impl IMultiValueConverter for StringFormatMultiValueConverter
Source§fn convert(
&self,
values: &[Option<BoxedValue>],
target_type: ValueType,
parameter: Option<&BoxedValue>,
culture: &CultureInfo,
) -> Result<Option<BoxedValue>, BindingError>
fn convert( &self, values: &[Option<BoxedValue>], target_type: ValueType, parameter: Option<&BoxedValue>, culture: &CultureInfo, ) -> Result<Option<BoxedValue>, BindingError>
Converts multi-binding values to a value for the target.
Source§impl MarkupTyped for StringFormatMultiValueConverter
impl MarkupTyped for StringFormatMultiValueConverter
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !RefUnwindSafe for StringFormatMultiValueConverter
impl !Send for StringFormatMultiValueConverter
impl !Sync for StringFormatMultiValueConverter
impl !UnwindSafe for StringFormatMultiValueConverter
impl Freeze for StringFormatMultiValueConverter
impl Unpin for StringFormatMultiValueConverter
impl UnsafeUnpin for StringFormatMultiValueConverter
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more