Struct webrender_api::font::SyntheticItalics
source · #[repr(C)]pub struct SyntheticItalics {
pub angle: i16,
}
Fields§
§angle: i16
Implementations§
source§impl SyntheticItalics
impl SyntheticItalics
pub const ANGLE_SCALE: f32 = 256f32
pub fn from_degrees(degrees: f32) -> Self
pub fn to_degrees(self) -> f32
pub fn to_radians(self) -> f32
pub fn to_skew(self) -> f32
pub fn enabled() -> Self
pub fn disabled() -> Self
pub fn is_enabled(self) -> bool
Trait Implementations§
source§impl Clone for SyntheticItalics
impl Clone for SyntheticItalics
source§fn clone(&self) -> SyntheticItalics
fn clone(&self) -> SyntheticItalics
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 SyntheticItalics
impl Debug for SyntheticItalics
source§impl Default for SyntheticItalics
impl Default for SyntheticItalics
source§impl<'de> Deserialize<'de> for SyntheticItalics
impl<'de> Deserialize<'de> for SyntheticItalics
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 Hash for SyntheticItalics
impl Hash for SyntheticItalics
source§impl MallocSizeOf for SyntheticItalics
impl MallocSizeOf for SyntheticItalics
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 Ord for SyntheticItalics
impl Ord for SyntheticItalics
source§fn cmp(&self, other: &SyntheticItalics) -> Ordering
fn cmp(&self, other: &SyntheticItalics) -> 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 for SyntheticItalics
impl PartialEq for SyntheticItalics
source§fn eq(&self, other: &SyntheticItalics) -> bool
fn eq(&self, other: &SyntheticItalics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SyntheticItalics
impl PartialOrd for SyntheticItalics
source§fn partial_cmp(&self, other: &SyntheticItalics) -> Option<Ordering>
fn partial_cmp(&self, other: &SyntheticItalics) -> 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 Serialize for SyntheticItalics
impl Serialize for SyntheticItalics
impl Copy for SyntheticItalics
impl Eq for SyntheticItalics
impl StructuralPartialEq for SyntheticItalics
Auto Trait Implementations§
impl Freeze for SyntheticItalics
impl RefUnwindSafe for SyntheticItalics
impl Send for SyntheticItalics
impl Sync for SyntheticItalics
impl Unpin for SyntheticItalics
impl UnwindSafe for SyntheticItalics
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