#[non_exhaustive]pub struct Line {
pub y: f32,
pub start_x: f32,
pub end_x: f32,
pub style: GlyphStyle,
}Expand description
The horizontal line that needs to be rendered.
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.y: f32The Y coordinate of the line.
start_x: f32The X coordinate of the line’s start.
end_x: f32The X coordinate of the line’s end.
style: GlyphStyleThe style of the line.
Trait Implementations§
impl Copy for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
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