pub struct ObjectConverters;Expand description
Provides a set of useful IValueConverters for working with objects.
Implementations§
Source§impl ObjectConverters
impl ObjectConverters
Sourcepub fn is_null() -> Rc<dyn IValueConverter>
pub fn is_null() -> Rc<dyn IValueConverter>
A value converter that returns true if the input object is a null reference.
Sourcepub fn is_not_null() -> Rc<dyn IValueConverter>
pub fn is_not_null() -> Rc<dyn IValueConverter>
A value converter that returns true if the input object is not null.
Sourcepub fn equal() -> Rc<dyn IValueConverter>
pub fn equal() -> Rc<dyn IValueConverter>
A value converter that returns true if the input object is equal to a parameter object.
Sourcepub fn not_equal() -> Rc<dyn IValueConverter>
pub fn not_equal() -> Rc<dyn IValueConverter>
A value converter that returns true if the input object is not equal to a parameter object.
Sourcepub fn are_all_null() -> Rc<dyn IMultiValueConverter>
pub fn are_all_null() -> Rc<dyn IMultiValueConverter>
A multi-value converter that returns true if all inputs are null.
Sourcepub fn are_any_null() -> Rc<dyn IMultiValueConverter>
pub fn are_any_null() -> Rc<dyn IMultiValueConverter>
A multi-value converter that returns true if at least one input is null.
Sourcepub fn are_all_equal() -> Rc<dyn IMultiValueConverter>
pub fn are_all_equal() -> Rc<dyn IMultiValueConverter>
A multi-value converter that returns true if all inputs are equal to each other. Null values are not considered equal to anything.
Trait Implementations§
Source§impl MarkupTyped for ObjectConverters
impl MarkupTyped for ObjectConverters
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl Freeze for ObjectConverters
impl RefUnwindSafe for ObjectConverters
impl Send for ObjectConverters
impl Sync for ObjectConverters
impl Unpin for ObjectConverters
impl UnsafeUnpin for ObjectConverters
impl UnwindSafe for ObjectConverters
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
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