ValueSpan
struct · ferroui-base · v0.5.0
struct ValueSpan<T>
Pairing of value and positions sharing that value.
Members
new
const fn new(start: i32, length: i32, value: T) -> Self
start
const fn start(self: &Self) -> i32
Gets the start of the span.
length
const fn length(self: &Self) -> i32
Gets the length of the span.
value
const fn value(self: &Self) -> &T
Gets the value of the span.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.