pub struct SnapMatch {
pub target: SnapTarget,
pub target_time: Seconds,
pub moving_edge: SnapEdge,
pub delta: Seconds,
}Expand description
The closest snap found by Stack::find_snap.
Fields§
§target: SnapTarget§target_time: SecondsThe time of the target edge or point: where a guide line belongs.
moving_edge: SnapEdgeWhich edge of the moving range lands on target_time.
delta: SecondsThe shift to add to the moving start so it snaps (|delta| <= tolerance).
Trait Implementations§
impl StructuralPartialEq for SnapMatch
Auto Trait Implementations§
impl Freeze for SnapMatch
impl RefUnwindSafe for SnapMatch
impl Send for SnapMatch
impl Sync for SnapMatch
impl Unpin for SnapMatch
impl UnsafeUnpin for SnapMatch
impl UnwindSafe for SnapMatch
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