pub struct ScreenTolerance {
pub css_px: f64,
}Expand description
A screen-space tolerance in CSS pixels (pick radius, snap radius).
Fields§
§css_px: f64Radius in CSS pixels (device pixel ratio is already applied by the view).
Implementations§
Trait Implementations§
Source§impl Clone for ScreenTolerance
impl Clone for ScreenTolerance
Source§fn clone(&self) -> ScreenTolerance
fn clone(&self) -> ScreenTolerance
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 ScreenTolerance
Source§impl Debug for ScreenTolerance
impl Debug for ScreenTolerance
Source§impl<'de> Deserialize<'de> for ScreenTolerance
impl<'de> Deserialize<'de> for ScreenTolerance
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
Source§impl PartialEq for ScreenTolerance
impl PartialEq for ScreenTolerance
Source§fn eq(&self, other: &ScreenTolerance) -> bool
fn eq(&self, other: &ScreenTolerance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScreenTolerance
impl Serialize for ScreenTolerance
impl StructuralPartialEq for ScreenTolerance
Auto Trait Implementations§
impl Freeze for ScreenTolerance
impl RefUnwindSafe for ScreenTolerance
impl Send for ScreenTolerance
impl Sync for ScreenTolerance
impl Unpin for ScreenTolerance
impl UnsafeUnpin for ScreenTolerance
impl UnwindSafe for ScreenTolerance
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