#[repr(C)]pub struct SnapResult {
pub snap_a: i32,
pub snap_b: i32,
pub error: f32,
pub chamber: i32,
}Expand description
Result of snapping a point to the nearest Eisenstein integer.
Fields§
§snap_a: i32§snap_b: i32§error: f32§chamber: i32Trait Implementations§
Source§impl Clone for SnapResult
impl Clone for SnapResult
Source§fn clone(&self) -> SnapResult
fn clone(&self) -> SnapResult
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 moreAuto Trait Implementations§
impl Freeze for SnapResult
impl RefUnwindSafe for SnapResult
impl Send for SnapResult
impl Sync for SnapResult
impl Unpin for SnapResult
impl UnsafeUnpin for SnapResult
impl UnwindSafe for SnapResult
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