LineBreak
struct · ferroui-base · v0.5.0
struct LineBreak
Information about a potential line break position
Members
new
const fn new(position_measure: usize, position_wrap: usize, required: bool) -> Self
Constructor
position_measure- The code point index to measure toposition_wrap- The code point index to actually break the line atrequired- True if this is a required line break; otherwise false
position_measure
const fn position_measure(self: &Self) -> usize
The break position, before any trailing whitespace
This doesn't include trailing whitespace
position_wrap
const fn position_wrap(self: &Self) -> usize
The break position, after any trailing whitespace
This includes trailing whitespace
required
const fn required(self: &Self) -> bool
True if there should be a forced line break here
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.