pub struct WrapOpportunity {
pub offset: usize,
pub mandatory: bool,
}Available on crate features
analysis and unicode-wrap only.Expand description
A position in plain text where a line wrap may occur.
Fields§
§offset: usizeByte offset of the character that starts the new line if wrapped here.
mandatory: boolWhether the break is mandatory (e.g. a hard line feed or end of text).
Trait Implementations§
Source§impl Clone for WrapOpportunity
impl Clone for WrapOpportunity
Source§fn clone(&self) -> WrapOpportunity
fn clone(&self) -> WrapOpportunity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WrapOpportunity
Source§impl Debug for WrapOpportunity
impl Debug for WrapOpportunity
impl Eq for WrapOpportunity
Source§impl PartialEq for WrapOpportunity
impl PartialEq for WrapOpportunity
Source§fn eq(&self, other: &WrapOpportunity) -> bool
fn eq(&self, other: &WrapOpportunity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WrapOpportunity
Auto Trait Implementations§
impl Freeze for WrapOpportunity
impl RefUnwindSafe for WrapOpportunity
impl Send for WrapOpportunity
impl Sync for WrapOpportunity
impl Unpin for WrapOpportunity
impl UnsafeUnpin for WrapOpportunity
impl UnwindSafe for WrapOpportunity
Blanket Implementations§
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