pub struct Line { /* private fields */ }Expand description
Line is designed for use inside Canvas closures where you control absolute coordinates. It does not implement LayoutItem because its p1/p2 points are absolute, not relative to a layout rect. To use Line in a layout context, embed it in a Canvas widget.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Line
impl !Send for Line
impl !Sync for Line
impl !UnwindSafe for Line
impl Freeze for Line
impl Unpin for Line
impl UnsafeUnpin 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