FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LineBreak

    struct · ferroui-base · v0.5.0

    struct LineBreak
    

    Information about a potential line break position

    View source

    Members

    new

    const fn new(position_measure: usize, position_wrap: usize, required: bool) -> Self
    

    Constructor

    • position_measure - The code point index to measure to
    • position_wrap - The code point index to actually break the line at
    • required - True if this is a required line break; otherwise false

    Source

    position_measure

    const fn position_measure(self: &Self) -> usize
    

    The break position, before any trailing whitespace

    This doesn't include trailing whitespace

    Source

    position_wrap

    const fn position_wrap(self: &Self) -> usize
    

    The break position, after any trailing whitespace

    This includes trailing whitespace

    Source

    required

    const fn required(self: &Self) -> bool
    

    True if there should be a forced line break here

    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
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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