pub struct SplineAnchorRow {
pub index: usize,
pub id: String,
pub position: [f64; 3],
pub direction: [f64; 3],
pub forward: f64,
pub backward: f64,
pub flip: bool,
pub attached: Option<(String, PortSide)>,
}Expand description
One anchor as the editor lists it.
Fields§
§index: usize§id: String§position: [f64; 3]The RESOLVED position (the last run’s {id}:P{index} point; the
persisted one before the first run).
direction: [f64; 3]The RESOLVED unit travel direction (the {id}:P{index} axis).
forward: f64§backward: f64§flip: bool§attached: Option<(String, PortSide)>(port id, side) when attached.
Trait Implementations§
Source§impl Clone for SplineAnchorRow
impl Clone for SplineAnchorRow
Source§fn clone(&self) -> SplineAnchorRow
fn clone(&self) -> SplineAnchorRow
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 SplineAnchorRow
impl Debug for SplineAnchorRow
Source§impl PartialEq for SplineAnchorRow
impl PartialEq for SplineAnchorRow
Source§impl Serialize for SplineAnchorRow
impl Serialize for SplineAnchorRow
impl StructuralPartialEq for SplineAnchorRow
Auto Trait Implementations§
impl Freeze for SplineAnchorRow
impl RefUnwindSafe for SplineAnchorRow
impl Send for SplineAnchorRow
impl Sync for SplineAnchorRow
impl Unpin for SplineAnchorRow
impl UnsafeUnpin for SplineAnchorRow
impl UnwindSafe for SplineAnchorRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more