Struct rich_sdl2_rust::geo::Line
source · pub struct Line {
pub start: Point,
pub end: Point,
}
Expand description
A straight line from point to point.
Fields§
§start: Point
A start point of the line.
end: Point
A end point of the line.
Implementations§
Trait Implementations§
source§impl Ord for Line
impl Ord for Line
source§impl PartialEq for Line
impl PartialEq for Line
source§impl PartialOrd for Line
impl PartialOrd for Line
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Line
impl Eq for Line
impl StructuralPartialEq 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