Struct gpui2::ScaledPixels
source · #[repr(transparent)]pub struct ScaledPixels(_);
Implementations§
Trait Implementations§
source§impl Add<ScaledPixels> for ScaledPixels
impl Add<ScaledPixels> for ScaledPixels
§type Output = ScaledPixels
type Output = ScaledPixels
The resulting type after applying the
+
operator.source§fn add(self, rhs: ScaledPixels) -> ScaledPixels
fn add(self, rhs: ScaledPixels) -> ScaledPixels
Performs the
+
operation. Read moresource§impl AddAssign<ScaledPixels> for ScaledPixels
impl AddAssign<ScaledPixels> for ScaledPixels
source§fn add_assign(&mut self, rhs: ScaledPixels)
fn add_assign(&mut self, rhs: ScaledPixels)
Performs the
+=
operation. Read moresource§impl Clone for ScaledPixels
impl Clone for ScaledPixels
source§fn clone(&self) -> ScaledPixels
fn clone(&self) -> ScaledPixels
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 ScaledPixels
impl Debug for ScaledPixels
source§impl Default for ScaledPixels
impl Default for ScaledPixels
source§fn default() -> ScaledPixels
fn default() -> ScaledPixels
Returns the “default value” for a type. Read more
source§impl<__RhsT> Div<__RhsT> for ScaledPixelswhere
f32: Div<__RhsT, Output = f32>,
impl<__RhsT> Div<__RhsT> for ScaledPixelswhere f32: Div<__RhsT, Output = f32>,
§type Output = ScaledPixels
type Output = ScaledPixels
The resulting type after applying the
/
operator.source§fn div(self, rhs: __RhsT) -> ScaledPixels
fn div(self, rhs: __RhsT) -> ScaledPixels
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<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<ScaledPixels> for f64
impl From<ScaledPixels> for f64
source§fn from(scaled_pixels: ScaledPixels) -> Self
fn from(scaled_pixels: ScaledPixels) -> Self
Converts to this type from the input type.
source§impl PartialEq<ScaledPixels> for ScaledPixels
impl PartialEq<ScaledPixels> for ScaledPixels
source§fn eq(&self, other: &ScaledPixels) -> bool
fn eq(&self, other: &ScaledPixels) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ScaledPixels> for ScaledPixels
impl PartialOrd<ScaledPixels> for ScaledPixels
source§fn partial_cmp(&self, other: &ScaledPixels) -> Option<Ordering>
fn partial_cmp(&self, other: &ScaledPixels) -> 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<ScaledPixels> for ScaledPixels
impl Sub<ScaledPixels> for ScaledPixels
§type Output = ScaledPixels
type Output = ScaledPixels
The resulting type after applying the
-
operator.source§fn sub(self, rhs: ScaledPixels) -> ScaledPixels
fn sub(self, rhs: ScaledPixels) -> ScaledPixels
Performs the
-
operation. Read moresource§impl SubAssign<ScaledPixels> for ScaledPixels
impl SubAssign<ScaledPixels> for ScaledPixels
source§fn sub_assign(&mut self, rhs: ScaledPixels)
fn sub_assign(&mut self, rhs: ScaledPixels)
Performs the
-=
operation. Read moreimpl Copy for ScaledPixels
impl Eq for ScaledPixels
impl StructuralPartialEq for ScaledPixels
Auto Trait Implementations§
impl RefUnwindSafe for ScaledPixels
impl Send for ScaledPixels
impl Sync for ScaledPixels
impl Unpin for ScaledPixels
impl UnwindSafe for ScaledPixels
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.