#[repr(C)]pub struct msdfgen_LinearSegment {
pub _base: msdfgen_EdgeSegment,
pub p: [msdfgen_Point2; 2],
}Expand description
A line segment.
Fields§
§_base: msdfgen_EdgeSegment§p: [msdfgen_Point2; 2]Implementations§
Source§impl msdfgen_LinearSegment
impl msdfgen_LinearSegment
pub unsafe fn length(&self) -> f64
pub unsafe fn new( p0: msdfgen_Point2, p1: msdfgen_Point2, edgeColor: msdfgen_EdgeColor, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for msdfgen_LinearSegment
impl RefUnwindSafe for msdfgen_LinearSegment
impl !Send for msdfgen_LinearSegment
impl !Sync for msdfgen_LinearSegment
impl Unpin for msdfgen_LinearSegment
impl UnwindSafe for msdfgen_LinearSegment
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