FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CalendarDateRange

    struct · ferroui-controls · v0.5.0

    struct CalendarDateRange
    

    Represents a range of dates in a Calendar.

    A range is a reference object: handles are Rc<CalendarDateRange> and compare by identity.

    View source

    Members

    new

    fn new(day: DateTime) -> Rc<Self>
    

    Initializes a new instance of the CalendarDateRange class with a single date: day is the date to be represented by the range.

    Source

    new_range

    fn new_range(start: DateTime, end: DateTime) -> Rc<Self>
    

    Initializes a new instance of the CalendarDateRange class with a range of dates: start is the start of the range to be represented and end the end of it.

    Source

    start

    fn start(self: &Self) -> DateTime
    

    Gets the first date in the represented range.

    Source

    end

    fn end(self: &Self) -> DateTime
    

    Gets the last date in the represented range.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Debug
    • PartialEq

    Availability

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