#[repr(C)]pub struct LineSegment {
pub start_x: f32,
pub width: f32,
pub priority: i32,
}Expand description
A line segment representing available horizontal space at a given y-position. Used for line breaking within shaped containers.
Fields§
§start_x: f32The x-coordinate where this segment starts
width: f32The width of this segment
priority: i32Priority for choosing between overlapping segments (higher = preferred)
Implementations§
Source§impl LineSegment
impl LineSegment
Trait Implementations§
Source§impl Clone for LineSegment
impl Clone for LineSegment
Source§fn clone(&self) -> LineSegment
fn clone(&self) -> LineSegment
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 LineSegment
impl Debug for LineSegment
Source§impl FromIterator<LineSegment> for LineSegmentVec
impl FromIterator<LineSegment> for LineSegmentVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LineSegment>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LineSegment>,
Creates a value from an iterator. Read more
Source§impl PartialEq for LineSegment
impl PartialEq for LineSegment
impl Copy for LineSegment
impl StructuralPartialEq for LineSegment
Auto Trait Implementations§
impl Freeze for LineSegment
impl RefUnwindSafe for LineSegment
impl Send for LineSegment
impl Sync for LineSegment
impl Unpin for LineSegment
impl UnwindSafe for LineSegment
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