#[non_exhaustive]pub struct LineBreakContext {
pub before_before: Option<char>,
pub before: char,
pub after: char,
}Expand description
Context for a potential line break opportunity between two adjacent code points.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.before_before: Option<char>The code point before the before code point, if any.
before: charThe code point before the potential break.
after: charThe code point after the potential break.
Trait Implementations§
Source§impl Clone for LineBreakContext
impl Clone for LineBreakContext
Source§fn clone(&self) -> LineBreakContext
fn clone(&self) -> LineBreakContext
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 LineBreakContext
Auto Trait Implementations§
impl Forget for LineBreakContext
impl Freeze for LineBreakContext
impl Move for LineBreakContext
impl RefUnwindSafe for LineBreakContext
impl Send for LineBreakContext
impl Sync for LineBreakContext
impl Unpin for LineBreakContext
impl UnsafeUnpin for LineBreakContext
impl UnwindSafe for LineBreakContext
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