FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DayOfWeek

    enum · ferroui-base · v0.5.0

    enum DayOfWeek
    

    A day of the week; the numeric values are the ones of .NET (Sunday is 0).

    View source

    Members

    Sunday

    Sunday = 0
    

    Source

    Monday

    Monday = 1
    

    Source

    Tuesday

    Tuesday = 2
    

    Source

    Wednesday

    Wednesday = 3
    

    Source

    Thursday

    Thursday = 4
    

    Source

    Friday

    Friday = 5
    

    Source

    Saturday

    Saturday = 6
    

    Source

    ALL

    const ALL: [DayOfWeek; 7]
    

    The seven days, starting with Sunday.

    Source

    from_i32

    const fn from_i32(value: i32) -> Option<DayOfWeek>
    

    The day for a numeric value 0..=6 (the C# cast (DayOfWeek)value); None for values that name no day.

    Source

    to_i32

    const fn to_i32(self: Self) -> i32
    

    The numeric value (the C# cast (int)day).

    Source

    name

    const fn name(self: Self) -> &'static str
    

    The English name of the day, as Enum.ToString() gives it.

    Source

    Trait implementations

    Availability

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