pub struct CubicSegment {
pub from: Point,
pub ctrl1: Point,
pub ctrl2: Point,
pub to: Point,
}Expand description
一段 cubic Bezier,包含起点,便于直接映射到底层渲染 API。
Fields§
§from: Pointcubic 起点。
ctrl1: Point第一个控制点。
ctrl2: Point第二个控制点。
to: Pointcubic 终点。
Trait Implementations§
Source§impl Clone for CubicSegment
impl Clone for CubicSegment
Source§fn clone(&self) -> CubicSegment
fn clone(&self) -> CubicSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CubicSegment
impl Debug for CubicSegment
Source§impl PartialEq for CubicSegment
impl PartialEq for CubicSegment
Source§fn eq(&self, other: &CubicSegment) -> bool
fn eq(&self, other: &CubicSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CubicSegment
impl StructuralPartialEq for CubicSegment
Auto Trait Implementations§
impl Freeze for CubicSegment
impl RefUnwindSafe for CubicSegment
impl Send for CubicSegment
impl Sync for CubicSegment
impl Unpin for CubicSegment
impl UnsafeUnpin for CubicSegment
impl UnwindSafe for CubicSegment
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