Struct figures::units::Px

source ·
#[repr(C)]
pub struct Px(/* private fields */);
Expand description

Physical pixels

Implementations§

source§

impl Px

source

pub const MAX: Self = _

The maximum value for this type.

source

pub const MIN: Self = _

The minimum value for this type.

source

pub const fn new(value: i32) -> Self

Returns a new wrapped value for this unit.

source

pub const fn get(self) -> i32

Returns the contained value, rounded if applicable.

source

pub const fn saturating_sub(self, other: Self) -> Self

Returns the result of subtracting other from self. If the calculation overflows, the value will be limited to Self::MIN/Self::MAX.

source

pub const fn saturating_add(self, other: Self) -> Self

Returns the result of adding self and other. If the calculation overflows, the value will be limited to Self::MIN/Self::MAX.

source

pub const fn saturating_mul(self, other: Self) -> Self

Returns the result of multiplying self and other. If the calculation overflows, the value will be limited to Self::MIN/Self::MAX.

source

pub const fn saturating_div(self, other: Self) -> Self

Returns the result of dividing self by other. If the calculation overflows, the value will be limited to Self::MIN/Self::MAX.

Trait Implementations§

source§

impl Abs for Px

source§

fn abs(&self) -> Self

Returns the positive difference between this value and 0. Read more
source§

impl<Unit> Add<Px> for Point<Unit>where Unit: Add<Px, Output = Unit>,

§

type Output = Point<Unit>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Px) -> Self::Output

Performs the + operation. Read more
source§

impl<Unit> Add<Px> for Size<Unit>where Unit: Add<Px, Output = Unit>,

§

type Output = Size<Unit>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Px) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for Px

§

type Output = Px

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add for Px

§

type Output = Px

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<i32> for Px

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign for Px

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl CastFrom<Px> for f32

source§

fn from_cast(from: Px) -> Self

Returns from as Self.
source§

impl CastFrom<f32> for Px

source§

fn from_cast(from: f32) -> Self

Returns from as Self.
source§

impl Clone for Px

source§

fn clone(&self) -> Px

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Px

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Px

source§

fn default() -> Px

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Px

source§

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 Display for Px

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<Fraction> for Px

§

type Output = Px

The resulting type after applying the / operator.
source§

fn div(self, rhs: Fraction) -> Self::Output

Performs the / operation. Read more
source§

impl<Unit> Div<Px> for Point<Unit>where Unit: Div<Px, Output = Unit>,

§

type Output = Point<Unit>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Px) -> Self::Output

Performs the / operation. Read more
source§

impl<Unit> Div<Px> for Size<Unit>where Unit: Div<Px, Output = Unit>,

§

type Output = Size<Unit>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Px) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32> for Px

§

type Output = Px

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for Px

§

type Output = Px

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div for Px

§

type Output = Px

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<i32> for Px

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl DivAssign for Px

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl FloatConversion for Px

§

type Float = f32

The type that represents this type in floating point form.
source§

fn into_float(self) -> Self::Float

Returns this value in floating point form.
source§

fn from_float(float: Self::Float) -> Self

Converts from floating point to this form.
source§

impl From<Px> for f32

source§

fn from(value: Px) -> Self

Converts to this type from the input type.
source§

impl From<Px> for i32

source§

fn from(value: Px) -> Self

Converts to this type from the input type.
source§

impl From<f32> for Px

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Px

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl Hash for Px

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoComponents<Px> for f32

source§

fn into_components(self) -> (Px, Px)

Extracts this type’s 2d vector components.
source§

fn to_vec<Type>(self) -> Typewhere Type: FromComponents<Unit>,

Converts this type to another type using FromComponents and IntoComponents.
source§

impl IntoComponents<Px> for i32

source§

fn into_components(self) -> (Px, Px)

Extracts this type’s 2d vector components.
source§

fn to_vec<Type>(self) -> Typewhere Type: FromComponents<Unit>,

Converts this type to another type using FromComponents and IntoComponents.
source§

impl IntoSigned for Px

§

type Signed = Px

The signed representation of this type.
source§

fn into_signed(self) -> Self::Signed

Returns this value as an unsigned value. Values that are larger than can fit in an i32 are converted to i32::MAX.
source§

impl IntoUnsigned for Px

§

type Unsigned = UPx

The unsigned representation of this type.
source§

fn into_unsigned(self) -> Self::Unsigned

Returns this value as an unsigned value. Negative values will be converted to 0.
source§

impl Mul<Fraction> for Px

§

type Output = Px

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Fraction) -> Self::Output

Performs the * operation. Read more
source§

impl<Unit> Mul<Px> for Point<Unit>where Unit: Mul<Px, Output = Unit>,

§

type Output = Point<Unit>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Px) -> Self::Output

Performs the * operation. Read more
source§

impl<Unit> Mul<Px> for Size<Unit>where Unit: Mul<Px, Output = Unit>,

§

type Output = Size<Unit>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Px) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for Px

§

type Output = Px

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for Px

§

type Output = Px

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for Px

§

type Output = Px

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<i32> for Px

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl MulAssign for Px

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for Px

§

type Output = Px

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for Px

source§

fn cmp(&self, other: &Px) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Px> for UPx

source§

fn eq(&self, other: &Px) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<UPx> for Px

source§

fn eq(&self, other: &UPx) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i32> for Px

source§

fn eq(&self, other: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Px

source§

fn eq(&self, other: &Px) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Px> for UPx

source§

fn partial_cmp(&self, other: &Px) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<UPx> for Px

source§

fn partial_cmp(&self, other: &UPx) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<i32> for Px

source§

fn partial_cmp(&self, other: &i32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd for Px

source§

fn partial_cmp(&self, other: &Px) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PixelScaling for Px

source§

const PX_SCALING_FACTOR: u16 = 1u16

The scaling factor to apply when converting to pixels, in addition to any spatial scaling already being applied.
source§

impl Pow for Px

source§

fn pow(&self, exp: u32) -> Self

Returns the saturating result of raising self to the exp power.
source§

impl Ranged for Px

source§

const MAX: Self = Px::MAX

The maximum value for this type.
source§

const MIN: Self = Px::MIN

The minimum value for this type.
source§

impl<Unit> Rem<Px> for Point<Unit>where Unit: Rem<Px, Output = Unit>,

§

type Output = Point<Unit>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Px) -> Self::Output

Performs the % operation. Read more
source§

impl<Unit> Rem<Px> for Size<Unit>where Unit: Rem<Px, Output = Unit>,

§

type Output = Size<Unit>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Px) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f32> for Px

§

type Output = Px

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for Px

§

type Output = Px

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem for Px

§

type Output = Px

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<i32> for Px

source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
source§

impl RemAssign for Px

source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
source§

impl Roots for Px

source§

fn sqrt(self) -> Self

Returns the square root of self.
source§

fn cbrt(self) -> Self

Returns the cube root of self.
source§

impl Round for Px

source§

fn round(self) -> Self

Returns self rounded to the nearest whole number.
source§

fn ceil(self) -> Self

Returns self raised to the next whole number further away from 0.
source§

fn floor(self) -> Self

Returns self lowered to the next whole number closer to 0.
source§

impl ScreenScale for Px

§

type Lp = Lp

This type when measuring with Lp.
§

type Px = Px

This type when measuring with Px.
§

type UPx = UPx

This type when measuring with UPx.
source§

fn into_px(self, _scale: Fraction) -> Self::Px

Converts this value from its current unit into device pixels (Px) using the provided scale factor.
source§

fn from_px(px: Self::Px, _scale: Fraction) -> Self

Converts from pixels into this type, using the provided scale factor.
source§

fn into_lp(self, scale: Fraction) -> Self::Lp

Converts this value from its current unit into device independent pixels (Lp) using the provided scale factor.
source§

fn from_lp(lp: Self::Lp, scale: Fraction) -> Self

Converts from Lp into this type, using the provided scale factor.
source§

fn into_upx(self, _scale: Fraction) -> Self::UPx

Converts this value from its current unit into device pixels (UPx) using the provided scale factor.
source§

fn from_upx(px: Self::UPx, _scale: Fraction) -> Self

Converts from unsigned pixels into this type, using the provided scale factor.
source§

impl Serialize for Px

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<Unit> Sub<Px> for Point<Unit>where Unit: Sub<Px, Output = Unit>,

§

type Output = Point<Unit>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Px) -> Self::Output

Performs the - operation. Read more
source§

impl<Unit> Sub<Px> for Size<Unit>where Unit: Sub<Px, Output = Unit>,

§

type Output = Size<Unit>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Px) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for Px

§

type Output = Px

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for Px

§

type Output = Px

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<i32> for Px

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign for Px

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl TryFrom<Px> for UPx

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(value: Px) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<UPx> for Px

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(value: UPx) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u32> for Px

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl UnscaledUnit for Px

§

type Representation = i32

The internal reprsentation used by this type.
source§

fn from_unscaled(unscaled: Self::Representation) -> Self

Returns a new instance using the unscaled representation.
source§

fn into_unscaled(self) -> Self::Representation

Returns the inner, unscaled representation of this value.
source§

impl Zero for Px

source§

const ZERO: Self = _

The zero value for this type.
source§

fn is_zero(&self) -> bool

Returns true if self represents 0.
source§

impl Zeroable for Px

§

fn zeroed() -> Self

source§

impl Copy for Px

source§

impl Eq for Px

source§

impl Pod for Px

source§

impl StructuralEq for Px

source§

impl StructuralPartialEq for Px

Auto Trait Implementations§

§

impl RefUnwindSafe for Px

§

impl Send for Px

§

impl Sync for Px

§

impl Unpin for Px

§

impl UnwindSafe for Px

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<A> Cast for A

§

fn cast<To>(self) -> Towhere To: CastFrom<A>,

Casts self to the To type. This may be a lossy operation.
§

impl<A> CastFrom<A> for A

§

fn from_cast(from: A) -> A

Returns from as Self.
§

impl<A, B> CastInto<A> for Bwhere A: CastFrom<B>,

§

fn cast_into(self) -> A

Returns self as To.
§

impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,

§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
§

impl<Q, K> Comparable<K> for Qwhere Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unit> IntoComponents<Unit> for Unitwhere Unit: Copy,

source§

fn into_components(self) -> (Unit, Unit)

Extracts this type’s 2d vector components.
source§

fn to_vec<Type>(self) -> Typewhere Type: FromComponents<Unit>,

Converts this type to another type using FromComponents and IntoComponents.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> AnyBitPattern for Twhere T: Pod,

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

§

impl<T> NoUninit for Twhere T: Pod,

source§

impl<T, Rhs> NumAssignOps<Rhs> for Twhere T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for Twhere T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T> ScreenUnit for Twhere T: UnscaledUnit + ScreenScale<Px = Px, Lp = Lp, UPx = UPx> + Unit,

source§

impl<T> Unit for Twhere T: Div<Output = T> + Add<Output = T> + Mul<Output = T> + FloatConversion<Float = f32> + Rem<Output = T> + Sub<Output = T> + AddAssign + SubAssign + DivAssign + MulAssign + RemAssign + Zero + Ord + Eq + Copy + Default + Debug + IntoSigned + TryInto<i32> + 'static,

§

impl<T> WasmNotSend for Twhere T: Send,

§

impl<T> WasmNotSendSync for Twhere T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for Twhere T: Sync,