pub struct FileSizeStringConverter;Expand description
Converts a size in bytes to text with a unit (1.5KB); a size that is
not positive converts to empty text.
Implementations§
Trait Implementations§
Source§impl Default for FileSizeStringConverter
impl Default for FileSizeStringConverter
Source§impl IValueConverter for FileSizeStringConverter
impl IValueConverter for FileSizeStringConverter
Source§fn convert_back(
&self,
_value: Option<&BoxedValue>,
_target_type: ValueType,
_parameter: Option<&BoxedValue>,
_culture: &CultureInfo,
) -> Result<Option<BoxedValue>, BindingError>
fn convert_back( &self, _value: Option<&BoxedValue>, _target_type: ValueType, _parameter: Option<&BoxedValue>, _culture: &CultureInfo, ) -> Result<Option<BoxedValue>, BindingError>
Fails: the conversion has no inverse.
Source§fn convert(
&self,
value: Option<&BoxedValue>,
_target_type: ValueType,
_parameter: Option<&BoxedValue>,
_culture: &CultureInfo,
) -> Result<Option<BoxedValue>, BindingError>
fn convert( &self, value: Option<&BoxedValue>, _target_type: ValueType, _parameter: Option<&BoxedValue>, _culture: &CultureInfo, ) -> Result<Option<BoxedValue>, BindingError>
Converts a value on its way from the binding source to the target.
Source§impl MarkupTyped for FileSizeStringConverter
impl MarkupTyped for FileSizeStringConverter
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl Freeze for FileSizeStringConverter
impl RefUnwindSafe for FileSizeStringConverter
impl Send for FileSizeStringConverter
impl Sync for FileSizeStringConverter
impl Unpin for FileSizeStringConverter
impl UnsafeUnpin for FileSizeStringConverter
impl UnwindSafe for FileSizeStringConverter
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