pub struct BreakPoint {
pub y_position: f32,
pub break_class: BreakClass,
pub break_before: PageBreak,
pub break_after: PageBreak,
pub ancestor_avoid_depth: usize,
pub preceding_node: Option<NodeId>,
pub following_node: Option<NodeId>,
}Expand description
Information about a potential break point
Fields§
§y_position: f32Y position of this break point (in content coordinates)
break_class: BreakClassType of break point (Class A, B, or C)
break_before: PageBreakBreak-before value at this point
break_after: PageBreakBreak-after value at this point
ancestor_avoid_depth: usizeWhether ancestors have break-inside: avoid
preceding_node: Option<NodeId>Node that precedes this break point
following_node: Option<NodeId>Node that follows this break point
Implementations§
Source§impl BreakPoint
impl BreakPoint
Trait Implementations§
Source§impl Clone for BreakPoint
impl Clone for BreakPoint
Source§fn clone(&self) -> BreakPoint
fn clone(&self) -> BreakPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BreakPoint
impl RefUnwindSafe for BreakPoint
impl Send for BreakPoint
impl Sync for BreakPoint
impl Unpin for BreakPoint
impl UnwindSafe for BreakPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more