#[non_exhaustive]pub struct LineTruncation {
pub ellipsis_x: f32,
pub ellipsis_width: f32,
}Expand description
Where a line’s trailing ellipsis was drawn, for a line the layout truncated.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ellipsis_x: f32Leading edge of the ellipsis glyph, in layout-local coordinates.
ellipsis_width: f32Advance width of the ellipsis glyph.
Trait Implementations§
Source§impl Clone for LineTruncation
impl Clone for LineTruncation
impl Copy for LineTruncation
Source§impl Debug for LineTruncation
impl Debug for LineTruncation
Source§impl PartialEq for LineTruncation
impl PartialEq for LineTruncation
impl StructuralPartialEq for LineTruncation
Auto Trait Implementations§
impl Freeze for LineTruncation
impl RefUnwindSafe for LineTruncation
impl Send for LineTruncation
impl Sync for LineTruncation
impl Unpin for LineTruncation
impl UnsafeUnpin for LineTruncation
impl UnwindSafe for LineTruncation
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