#[repr(C)]pub struct Segment {
pub a: Point,
pub b: Point,
}Expand description
Directed from point a to point b.
Fields§
§a: Point§b: PointImplementations§
Trait Implementations§
Source§impl From<Segment> for tg_segment
impl From<Segment> for tg_segment
Source§impl From<tg_segment> for Segment
impl From<tg_segment> for Segment
Source§fn from(s: tg_segment) -> Self
fn from(s: tg_segment) -> Self
Converts to this type from the input type.
impl Copy for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)