pub struct FragmentPlacement {
pub offset: (f32, f32),
pub line_index: usize,
}Expand description
Layout result for an inline fragment placement.
Represents where a fragment is positioned after layout computation. Each placement corresponds 1:1 to a fragment in the input.
Fields§
§offset: (f32, f32)Offset position (x, y) relative to the container
line_index: usizeLine index where this fragment is placed
Trait Implementations§
Source§impl Clone for FragmentPlacement
impl Clone for FragmentPlacement
Source§fn clone(&self) -> FragmentPlacement
fn clone(&self) -> FragmentPlacement
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 moreSource§impl Debug for FragmentPlacement
impl Debug for FragmentPlacement
Source§impl PartialEq for FragmentPlacement
impl PartialEq for FragmentPlacement
impl Copy for FragmentPlacement
impl StructuralPartialEq for FragmentPlacement
Auto Trait Implementations§
impl Freeze for FragmentPlacement
impl RefUnwindSafe for FragmentPlacement
impl Send for FragmentPlacement
impl Sync for FragmentPlacement
impl Unpin for FragmentPlacement
impl UnwindSafe for FragmentPlacement
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