FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SourceSpan

    struct · ferroui-designer-core · v0.5.0

    struct SourceSpan
    

    Half-open UTF-8 byte range into the corresponding source snapshot.

    View source

    Members

    start

    start: usize
    

    Source

    end

    end: usize
    

    Source

    new

    fn new(start: usize, end: usize) -> Self
    

    Source

    len

    fn len(self: Self) -> usize
    

    Source

    is_empty

    fn is_empty(self: Self) -> bool
    

    Source

    contains

    fn contains(self: Self, offset: usize) -> bool
    

    Source

    range

    fn range(self: Self) -> std::ops::Range<usize>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • DeserializeOwned
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Serialize
    • Deserialize<'de>

    Availability

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