Struct truetype::glyph_data::PointFlags
source · pub struct PointFlags(pub u8);
Expand description
Point flags.
Tuple Fields§
§0: u8
Implementations§
source§impl PointFlags
impl PointFlags
pub fn is_on_curve(&self) -> bool
pub fn is_x_short(&self) -> bool
pub fn is_y_short(&self) -> bool
pub fn is_repeated(&self) -> bool
pub fn is_x_positive(&self) -> bool
pub fn is_x_same(&self) -> bool
pub fn is_y_positive(&self) -> bool
pub fn is_y_same(&self) -> bool
pub fn is_overlap_simple(&self) -> bool
pub fn is_invalid(&self) -> bool
Trait Implementations§
source§impl Clone for PointFlags
impl Clone for PointFlags
source§fn clone(&self) -> PointFlags
fn clone(&self) -> PointFlags
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 PointFlags
impl Debug for PointFlags
source§impl Default for PointFlags
impl Default for PointFlags
source§fn default() -> PointFlags
fn default() -> PointFlags
Returns the “default value” for a type. Read more
source§impl Display for PointFlags
impl Display for PointFlags
source§impl From<PointFlags> for u8
impl From<PointFlags> for u8
source§fn from(flags: PointFlags) -> u8
fn from(flags: PointFlags) -> u8
Converts to this type from the input type.
source§impl PartialEq<PointFlags> for PointFlags
impl PartialEq<PointFlags> for PointFlags
source§fn eq(&self, other: &PointFlags) -> bool
fn eq(&self, other: &PointFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.