SourceSpan
struct · ferroui-designer-core · v0.5.0
struct SourceSpan
Half-open UTF-8 byte range into the corresponding source snapshot.
Members
start
start: usize
end
end: usize
new
fn new(start: usize, end: usize) -> Self
len
fn len(self: Self) -> usize
is_empty
fn is_empty(self: Self) -> bool
contains
fn contains(self: Self, offset: usize) -> bool
range
fn range(self: Self) -> std::ops::Range<usize>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.