TimeSpanTypeConverter
struct · ferroui-markup-xaml · v0.5.0
struct TimeSpanTypeConverter
Converts text to a time span. Besides the time span format
([d.]hh:mm[:ss[.fffffff]]) it accepts a number of seconds (0.25).
A time span has two Rust forms, SignedDuration and Duration (C5 of #423): the
converter converts text to a SignedDuration, and a time span or text to a Duration
(convert_to), where a negative time span is an error
(decision O2 of docs/idiomatic-rust-signatures.md).
Members
new
fn new() -> ::std::rc::Rc<Self>
as_type_converter
fn as_type_converter(self: &::std::rc::Rc<Self>) -> ::std::rc::Rc<dyn $crate::converters::TypeConverter>
The converter as the type converter contract.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTypeConverterMarkupTypedPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.