#[non_exhaustive]pub struct SnapOptions {
pub aperture: f64,
pub kinds: u32,
pub base: Option<[f64; 2]>,
}Expand description
what Scene::snap looks for. Made with new (it may grow)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.aperture: f64the aperture’s radius in pixels: what lies within it of the pointer
kinds: u32the kinds looked for (SNAP_* bits)
base: Option<[f64; 2]>the command’s last point: perpendicular and tangent need it (None: they are not looked for)
Implementations§
Source§impl SnapOptions
impl SnapOptions
pub const fn new(aperture: f64, kinds: u32) -> SnapOptions
Sourcepub const fn with_base(self, base: [f64; 2]) -> SnapOptions
pub const fn with_base(self, base: [f64; 2]) -> SnapOptions
the same with a base point for perpendicular and tangent
Trait Implementations§
Source§impl Clone for SnapOptions
impl Clone for SnapOptions
impl Copy for SnapOptions
Source§impl Debug for SnapOptions
impl Debug for SnapOptions
Source§impl PartialEq for SnapOptions
impl PartialEq for SnapOptions
impl StructuralPartialEq for SnapOptions
Auto Trait Implementations§
impl Forget for SnapOptions
impl Freeze for SnapOptions
impl Move for SnapOptions
impl RefUnwindSafe for SnapOptions
impl Send for SnapOptions
impl Sync for SnapOptions
impl Unpin for SnapOptions
impl UnsafeUnpin for SnapOptions
impl UnwindSafe for SnapOptions
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