FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

    View source

    Members

    new

    fn new() -> ::std::rc::Rc<Self>
    

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.