TypeConverterHelper
struct · ferroui-xaml-interactivity · v0.5.0
struct TypeConverterHelper
A helper class that enables converting values specified in markup (strings) to their object representation.
Members
convert
fn convert(value: &str, destination_type: ValueType) -> Result<Option<BoxedValue>, ConversionError>
Converts string representation of a value to its object representation.
The text, boolean, 32-bit integer and floating point types are parsed as the reference
parses them (a malformed or overflowing text is an error); every other type converts with
the conversions of the untyped values (enumerations, the registered conversions and the
parse: of the markup metadata of the type, the type converters of the reference), and
finally ParseHelper. Ok(None) when no conversion applies.
Deviation (DEVIATIONS.md, Behaviors): the reference's chain of Enum.Parse,
IConvertible and TypeDescriptor.GetConverter is the conversion of the untyped values of
the framework.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.