pub struct LineOpportunity {
pub start_x: f32,
pub available_width: f32,
pub left_float_edge: f32,
pub right_float_edge: f32,
}Expand description
Usable inline opportunity for a line box at a given vertical position.
Fields§
§start_x: f32Horizontal start offset relative to content container origin.
available_width: f32Width available for inline phrasing content without colliding with floats.
left_float_edge: f32Absolute right edge of the leftmost float obstruction (or 0.0).
right_float_edge: f32Absolute left edge of the rightmost float obstruction (or container width).
Trait Implementations§
Source§impl Clone for LineOpportunity
impl Clone for LineOpportunity
impl Copy for LineOpportunity
Source§impl Debug for LineOpportunity
impl Debug for LineOpportunity
Source§impl PartialEq for LineOpportunity
impl PartialEq for LineOpportunity
impl StructuralPartialEq for LineOpportunity
Auto Trait Implementations§
impl Forget for LineOpportunity
impl Freeze for LineOpportunity
impl Move for LineOpportunity
impl RefUnwindSafe for LineOpportunity
impl Send for LineOpportunity
impl Sync for LineOpportunity
impl Unpin for LineOpportunity
impl UnsafeUnpin for LineOpportunity
impl UnwindSafe for LineOpportunity
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