Struct text_layout::Line
source · pub struct Line {
pub break_at: usize,
pub adjustment_ratio: f32,
}Expand description
A single line of text as represented by its break point and adjustment ratio.
Fields§
§break_at: usizeThe index of the item at which to break this line.
adjustment_ratio: f32The adjustment ratio that should be applied to glue when rendering this line. If the adjustment ratio is negative, glue should be adjusted by its shrink parameter. If the adjustment ratio is positive, glue should be adjusted by its stretch parameter. In general,
Implementations§
Trait Implementations§
impl Copy for Line
Auto Trait Implementations§
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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