FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ValueSpan

    struct · ferroui-base · v0.5.0

    struct ValueSpan<T>
    

    Pairing of value and positions sharing that value.

    View source

    Members

    new

    const fn new(start: i32, length: i32, value: T) -> Self
    

    Source

    start

    const fn start(self: &Self) -> i32
    

    Gets the start of the span.

    Source

    length

    const fn length(self: &Self) -> i32
    

    Gets the length of the span.

    Source

    value

    const fn value(self: &Self) -> &T
    

    Gets the value of the span.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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