pub struct SnapSettings {
pub enabled: bool,
pub radius: i32,
}Expand description
Validated snapping settings.
Fields§
§enabled: bool§radius: i32Logical pixels; the overlay multiplies by each monitor’s UI scale.
Trait Implementations§
Source§impl Clone for SnapSettings
impl Clone for SnapSettings
Source§fn clone(&self) -> SnapSettings
fn clone(&self) -> SnapSettings
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 moreimpl Copy for SnapSettings
Source§impl Debug for SnapSettings
impl Debug for SnapSettings
Source§impl Default for SnapSettings
impl Default for SnapSettings
impl Eq for SnapSettings
Source§impl PartialEq for SnapSettings
impl PartialEq for SnapSettings
impl StructuralPartialEq for SnapSettings
Auto Trait Implementations§
impl Freeze for SnapSettings
impl RefUnwindSafe for SnapSettings
impl Send for SnapSettings
impl Sync for SnapSettings
impl Unpin for SnapSettings
impl UnsafeUnpin for SnapSettings
impl UnwindSafe for SnapSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.