pub struct NormalizedCoord(/* private fields */);Expand description
A normalized font coordinate.
This is a 16-bit fixed-point number with a 14-bit fractional part. For font coordinates, its useful values are in the range -1.0..=1.0.
Implementations§
Source§impl NormalizedCoord
impl NormalizedCoord
Trait Implementations§
Source§impl Clone for NormalizedCoord
impl Clone for NormalizedCoord
Source§fn clone(&self) -> NormalizedCoord
fn clone(&self) -> NormalizedCoord
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 NormalizedCoord
Source§impl Debug for NormalizedCoord
impl Debug for NormalizedCoord
Source§impl Default for NormalizedCoord
impl Default for NormalizedCoord
Source§fn default() -> NormalizedCoord
fn default() -> NormalizedCoord
Returns the “default value” for a type. Read more
impl Eq for NormalizedCoord
Source§impl Hash for NormalizedCoord
impl Hash for NormalizedCoord
Source§impl PartialEq for NormalizedCoord
impl PartialEq for NormalizedCoord
impl Pod for NormalizedCoord
impl StructuralPartialEq for NormalizedCoord
Source§impl TransparentWrapper<i16> for NormalizedCoord
impl TransparentWrapper<i16> for NormalizedCoord
Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
Source§fn wrap_slice(s: &[Inner]) -> &[Self]
fn wrap_slice(s: &[Inner]) -> &[Self]
Convert a slice to the inner type into a slice to the wrapper type.
Source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
Source§fn peel_slice(s: &[Self]) -> &[Inner]
fn peel_slice(s: &[Self]) -> &[Inner]
Convert a slice to the wrapped type into a slice to the inner type.
Auto Trait Implementations§
impl Freeze for NormalizedCoord
impl RefUnwindSafe for NormalizedCoord
impl Send for NormalizedCoord
impl Sync for NormalizedCoord
impl Unpin for NormalizedCoord
impl UnsafeUnpin for NormalizedCoord
impl UnwindSafe for NormalizedCoord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
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.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> NoUninit for Twhere
T: Pod,
Source§impl<I, T> TransparentWrapperAlloc<I> for T
impl<I, T> TransparentWrapperAlloc<I> for T
Source§fn wrap_vec(s: Vec<Inner>) -> Vec<Self>
fn wrap_vec(s: Vec<Inner>) -> Vec<Self>
Convert a vec of the inner type into a vec of the wrapper type.
Source§fn wrap_box(s: Box<Inner>) -> Box<Self>
fn wrap_box(s: Box<Inner>) -> Box<Self>
Convert a box to the inner type into a box to the wrapper
type.
Source§fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
Convert an
Rc to the inner type into an Rc to the wrapper type.Source§fn wrap_arc(s: Arc<Inner>) -> Arc<Self> ⓘ
fn wrap_arc(s: Arc<Inner>) -> Arc<Self> ⓘ
Available on
target_has_atomic=ptr only.Convert an
Arc to the inner type into an Arc to the wrapper type.Source§fn peel_vec(s: Vec<Self>) -> Vec<Inner>
fn peel_vec(s: Vec<Self>) -> Vec<Inner>
Convert a vec of the wrapper type into a vec of the inner type.
Source§fn peel_box(s: Box<Self>) -> Box<Inner>
fn peel_box(s: Box<Self>) -> Box<Inner>
Convert a box to the wrapper type into a box to the inner
type.