pub struct LineBreak { /* private fields */ }Expand description
Information about a potential line break position
Implementations§
Source§impl LineBreak
impl LineBreak
Sourcepub const fn new(
position_measure: usize,
position_wrap: usize,
required: bool,
) -> Self
pub 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
Sourcepub const fn position_measure(&self) -> usize
pub const fn position_measure(&self) -> usize
The break position, before any trailing whitespace
This doesn’t include trailing whitespace
Sourcepub const fn position_wrap(&self) -> usize
pub const fn position_wrap(&self) -> usize
The break position, after any trailing whitespace
This includes trailing whitespace
Trait Implementations§
impl Copy for LineBreak
impl Eq for LineBreak
impl StructuralPartialEq for LineBreak
Auto Trait Implementations§
impl Freeze for LineBreak
impl RefUnwindSafe for LineBreak
impl Send for LineBreak
impl Sync for LineBreak
impl Unpin for LineBreak
impl UnsafeUnpin for LineBreak
impl UnwindSafe for LineBreak
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more