Struct gpui2::DevicePixels
source · #[repr(transparent)]pub struct DevicePixels(_);
Implementations§
Trait Implementations§
source§impl Add<DevicePixels> for DevicePixels
impl Add<DevicePixels> for DevicePixels
§type Output = DevicePixels
type Output = DevicePixels
The resulting type after applying the
+
operator.source§fn add(self, rhs: DevicePixels) -> DevicePixels
fn add(self, rhs: DevicePixels) -> DevicePixels
Performs the
+
operation. Read moresource§impl AddAssign<DevicePixels> for DevicePixels
impl AddAssign<DevicePixels> for DevicePixels
source§fn add_assign(&mut self, rhs: DevicePixels)
fn add_assign(&mut self, rhs: DevicePixels)
Performs the
+=
operation. Read moresource§impl Clone for DevicePixels
impl Clone for DevicePixels
source§fn clone(&self) -> DevicePixels
fn clone(&self) -> DevicePixels
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DevicePixels
impl Debug for DevicePixels
source§impl Default for DevicePixels
impl Default for DevicePixels
source§fn default() -> DevicePixels
fn default() -> DevicePixels
Returns the “default value” for a type. Read more
source§impl<__RhsT> Div<__RhsT> for DevicePixelswhere
i32: Div<__RhsT, Output = i32>,
impl<__RhsT> Div<__RhsT> for DevicePixelswhere i32: Div<__RhsT, Output = i32>,
§type Output = DevicePixels
type Output = DevicePixels
The resulting type after applying the
/
operator.source§fn div(self, rhs: __RhsT) -> DevicePixels
fn div(self, rhs: __RhsT) -> DevicePixels
Performs the
/
operation. Read moresource§impl From<DevicePixels> for ScaledPixels
impl From<DevicePixels> for ScaledPixels
source§fn from(device: DevicePixels) -> Self
fn from(device: DevicePixels) -> Self
Converts to this type from the input type.
source§impl From<DevicePixels> for i32
impl From<DevicePixels> for i32
source§fn from(device_pixels: DevicePixels) -> Self
fn from(device_pixels: DevicePixels) -> Self
Converts to this type from the input type.
source§impl From<DevicePixels> for u32
impl From<DevicePixels> for u32
source§fn from(device_pixels: DevicePixels) -> Self
fn from(device_pixels: DevicePixels) -> Self
Converts to this type from the input type.
source§impl From<DevicePixels> for u64
impl From<DevicePixels> for u64
source§fn from(device_pixels: DevicePixels) -> Self
fn from(device_pixels: DevicePixels) -> Self
Converts to this type from the input type.
source§impl From<ScaledPixels> for DevicePixels
impl From<ScaledPixels> for DevicePixels
source§fn from(scaled: ScaledPixels) -> Self
fn from(scaled: ScaledPixels) -> Self
Converts to this type from the input type.
source§impl From<i32> for DevicePixels
impl From<i32> for DevicePixels
source§impl From<u32> for DevicePixels
impl From<u32> for DevicePixels
source§impl From<u64> for DevicePixels
impl From<u64> for DevicePixels
source§impl Hash for DevicePixels
impl Hash for DevicePixels
source§impl Ord for DevicePixels
impl Ord for DevicePixels
source§fn cmp(&self, other: &DevicePixels) -> Ordering
fn cmp(&self, other: &DevicePixels) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DevicePixels> for DevicePixels
impl PartialEq<DevicePixels> for DevicePixels
source§fn eq(&self, other: &DevicePixels) -> bool
fn eq(&self, other: &DevicePixels) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DevicePixels> for DevicePixels
impl PartialOrd<DevicePixels> for DevicePixels
source§fn partial_cmp(&self, other: &DevicePixels) -> Option<Ordering>
fn partial_cmp(&self, other: &DevicePixels) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<DevicePixels> for DevicePixels
impl Sub<DevicePixels> for DevicePixels
§type Output = DevicePixels
type Output = DevicePixels
The resulting type after applying the
-
operator.source§fn sub(self, rhs: DevicePixels) -> DevicePixels
fn sub(self, rhs: DevicePixels) -> DevicePixels
Performs the
-
operation. Read moresource§impl SubAssign<DevicePixels> for DevicePixels
impl SubAssign<DevicePixels> for DevicePixels
source§fn sub_assign(&mut self, rhs: DevicePixels)
fn sub_assign(&mut self, rhs: DevicePixels)
Performs the
-=
operation. Read moreimpl Copy for DevicePixels
impl Eq for DevicePixels
impl StructuralEq for DevicePixels
impl StructuralPartialEq for DevicePixels
Auto Trait Implementations§
impl RefUnwindSafe for DevicePixels
impl Send for DevicePixels
impl Sync for DevicePixels
impl Unpin for DevicePixels
impl UnwindSafe for DevicePixels
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.