Struct truetype::tables::glyph_data::ComponentFlags
source · pub struct ComponentFlags(pub u16);
Expand description
Component flags.
Tuple Fields§
§0: u16
Implementations§
source§impl ComponentFlags
impl ComponentFlags
pub fn are_arguments_words(&self) -> bool
pub fn are_arguments_xy(&self) -> bool
pub fn should_round_xy_to_grid(&self) -> bool
pub fn has_scalar_scale(&self) -> bool
pub fn has_more_components(&self) -> bool
pub fn has_vector_scale(&self) -> bool
pub fn has_matrix_scale(&self) -> bool
pub fn has_instructions(&self) -> bool
pub fn should_use_metrics(&self) -> bool
pub fn has_overlap(&self) -> bool
pub fn is_offset_scaled(&self) -> bool
pub fn is_offset_unscaled(&self) -> bool
pub fn is_invalid(&self) -> bool
Trait Implementations§
source§impl Clone for ComponentFlags
impl Clone for ComponentFlags
source§fn clone(&self) -> ComponentFlags
fn clone(&self) -> ComponentFlags
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 ComponentFlags
impl Debug for ComponentFlags
source§impl Default for ComponentFlags
impl Default for ComponentFlags
source§fn default() -> ComponentFlags
fn default() -> ComponentFlags
Returns the “default value” for a type. Read more
source§impl Display for ComponentFlags
impl Display for ComponentFlags
source§impl From<ComponentFlags> for u16
impl From<ComponentFlags> for u16
source§fn from(flags: ComponentFlags) -> u16
fn from(flags: ComponentFlags) -> u16
Converts to this type from the input type.
source§impl PartialEq for ComponentFlags
impl PartialEq for ComponentFlags
source§fn eq(&self, other: &ComponentFlags) -> bool
fn eq(&self, other: &ComponentFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Value for ComponentFlags
impl Value for ComponentFlags
impl Copy for ComponentFlags
impl Eq for ComponentFlags
impl StructuralEq for ComponentFlags
impl StructuralPartialEq for ComponentFlags
Auto Trait Implementations§
impl RefUnwindSafe for ComponentFlags
impl Send for ComponentFlags
impl Sync for ComponentFlags
impl Unpin for ComponentFlags
impl UnwindSafe for ComponentFlags
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