pub struct SnapConfig {
pub enabled: bool,
pub radius: u32,
}Expand description
Edge snapping: whether it starts on, and how far it reaches.
Fields§
§enabled: boolThe launch default. Snapping starts on: the radius is small enough that placement away from an edge is untouched, and the feature is worthless if it has to be discovered before it helps. The toggle key flips it live and does not persist — this file owns the default.
radius: u32Search radius in logical pixels, scaled per monitor’s DPI, so one config behaves the same on a Retina panel and a 1x one.
Trait Implementations§
Source§impl Clone for SnapConfig
impl Clone for SnapConfig
Source§fn clone(&self) -> SnapConfig
fn clone(&self) -> SnapConfig
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 SnapConfig
Source§impl Debug for SnapConfig
impl Debug for SnapConfig
Source§impl Default for SnapConfig
impl Default for SnapConfig
Source§impl<'de> Deserialize<'de> for SnapConfigwhere
SnapConfig: Default,
impl<'de> Deserialize<'de> for SnapConfigwhere
SnapConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SnapConfig
Source§impl PartialEq for SnapConfig
impl PartialEq for SnapConfig
Source§impl Serialize for SnapConfig
impl Serialize for SnapConfig
impl StructuralPartialEq for SnapConfig
Auto Trait Implementations§
impl Freeze for SnapConfig
impl RefUnwindSafe for SnapConfig
impl Send for SnapConfig
impl Sync for SnapConfig
impl Unpin for SnapConfig
impl UnsafeUnpin for SnapConfig
impl UnwindSafe for SnapConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.