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).
Members
Sunday
Sunday = 0
Monday
Monday = 1
Tuesday
Tuesday = 2
Wednesday
Wednesday = 3
Thursday
Thursday = 4
Friday
Friday = 5
Saturday
Saturday = 6
ALL
const ALL: [DayOfWeek; 7]
The seven days, starting with Sunday.
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.
to_i32
const fn to_i32(self: Self) -> i32
The numeric value (the C# cast (int)day).
name
const fn name(self: Self) -> &'static str
The English name of the day, as Enum.ToString() gives it.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqPartialOrdOrdHashDisplayFrom<DayOfWeek>MarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.