pub type FontWeightFixedPoint = FixedPoint<u16, FONT_WEIGHT_FRACTION_BITS>;
Expand description
This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
Aliased Type§
struct FontWeightFixedPoint {
pub value: u16,
}
Fields§
§value: u16
The actual representation.
Implementations§
source§impl<T, const FRACTION_BITS: u16> FixedPoint<T, FRACTION_BITS>where
T: AsPrimitive<f32>,
f32: AsPrimitive<T>,
u16: AsPrimitive<T>,
impl<T, const FRACTION_BITS: u16> FixedPoint<T, FRACTION_BITS>where T: AsPrimitive<f32>, f32: AsPrimitive<T>, u16: AsPrimitive<T>,
Trait Implementations§
source§impl<T: Clone, const FRACTION_BITS: u16> Clone for FixedPoint<T, FRACTION_BITS>
impl<T: Clone, const FRACTION_BITS: u16> Clone for FixedPoint<T, FRACTION_BITS>
source§fn clone(&self) -> FixedPoint<T, FRACTION_BITS>
fn clone(&self) -> FixedPoint<T, FRACTION_BITS>
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<T, const FRACTION_BITS: u16> ComputeSquaredDistance for FixedPoint<T, FRACTION_BITS>where
T: ComputeSquaredDistance,
impl<T, const FRACTION_BITS: u16> ComputeSquaredDistance for FixedPoint<T, FRACTION_BITS>where T: ComputeSquaredDistance,
source§fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
Computes the squared distance between two animatable values.
source§impl<'de, T, const FRACTION_BITS: u16> Deserialize<'de> for FixedPoint<T, FRACTION_BITS>where
T: Deserialize<'de>,
impl<'de, T, const FRACTION_BITS: u16> Deserialize<'de> for FixedPoint<T, FRACTION_BITS>where T: Deserialize<'de>,
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<const FRACTION_BITS: u16> Div<FixedPoint<u16, FRACTION_BITS>> for FixedPoint<u16, FRACTION_BITS>
impl<const FRACTION_BITS: u16> Div<FixedPoint<u16, FRACTION_BITS>> for FixedPoint<u16, FRACTION_BITS>
source§impl<T, const FRACTION_BITS: u16> MallocSizeOf for FixedPoint<T, FRACTION_BITS>where
T: MallocSizeOf,
impl<T, const FRACTION_BITS: u16> MallocSizeOf for FixedPoint<T, FRACTION_BITS>where T: MallocSizeOf,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl<const FRACTION_BITS: u16> Mul<FixedPoint<u16, FRACTION_BITS>> for FixedPoint<u16, FRACTION_BITS>
impl<const FRACTION_BITS: u16> Mul<FixedPoint<u16, FRACTION_BITS>> for FixedPoint<u16, FRACTION_BITS>
source§impl<T: PartialEq, const FRACTION_BITS: u16> PartialEq<FixedPoint<T, FRACTION_BITS>> for FixedPoint<T, FRACTION_BITS>
impl<T: PartialEq, const FRACTION_BITS: u16> PartialEq<FixedPoint<T, FRACTION_BITS>> for FixedPoint<T, FRACTION_BITS>
source§fn eq(&self, other: &FixedPoint<T, FRACTION_BITS>) -> bool
fn eq(&self, other: &FixedPoint<T, FRACTION_BITS>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd, const FRACTION_BITS: u16> PartialOrd<FixedPoint<T, FRACTION_BITS>> for FixedPoint<T, FRACTION_BITS>
impl<T: PartialOrd, const FRACTION_BITS: u16> PartialOrd<FixedPoint<T, FRACTION_BITS>> for FixedPoint<T, FRACTION_BITS>
source§fn partial_cmp(&self, other: &FixedPoint<T, FRACTION_BITS>) -> Option<Ordering>
fn partial_cmp(&self, other: &FixedPoint<T, FRACTION_BITS>) -> 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<T, const FRACTION_BITS: u16> Serialize for FixedPoint<T, FRACTION_BITS>where
T: Serialize,
impl<T, const FRACTION_BITS: u16> Serialize for FixedPoint<T, FRACTION_BITS>where T: Serialize,
source§impl<T, const FRACTION_BITS: u16> ToResolvedValue for FixedPoint<T, FRACTION_BITS>where
T: ToResolvedValue,
impl<T, const FRACTION_BITS: u16> ToResolvedValue for FixedPoint<T, FRACTION_BITS>where T: ToResolvedValue,
§type ResolvedValue = FixedPoint<<T as ToResolvedValue>::ResolvedValue, FRACTION_BITS>
type ResolvedValue = FixedPoint<<T as ToResolvedValue>::ResolvedValue, FRACTION_BITS>
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.