Struct truetype::font_header::MacintoshFlags
source · pub struct MacintoshFlags(pub u16);
Expand description
Macintosh style flags.
Tuple Fields§
§0: u16
Implementations§
source§impl MacintoshFlags
impl MacintoshFlags
pub fn is_bold(&self) -> bool
pub fn is_italic(&self) -> bool
pub fn is_underline(&self) -> bool
pub fn is_outline(&self) -> bool
pub fn is_shadow(&self) -> bool
pub fn is_condensed(&self) -> bool
pub fn is_extended(&self) -> bool
pub fn is_invalid(&self) -> bool
Trait Implementations§
source§impl Clone for MacintoshFlags
impl Clone for MacintoshFlags
source§fn clone(&self) -> MacintoshFlags
fn clone(&self) -> MacintoshFlags
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 MacintoshFlags
impl Debug for MacintoshFlags
source§impl Default for MacintoshFlags
impl Default for MacintoshFlags
source§fn default() -> MacintoshFlags
fn default() -> MacintoshFlags
Returns the “default value” for a type. Read more
source§impl Display for MacintoshFlags
impl Display for MacintoshFlags
source§impl From<MacintoshFlags> for u16
impl From<MacintoshFlags> for u16
source§fn from(flags: MacintoshFlags) -> u16
fn from(flags: MacintoshFlags) -> u16
Converts to this type from the input type.
source§impl PartialEq<MacintoshFlags> for MacintoshFlags
impl PartialEq<MacintoshFlags> for MacintoshFlags
source§fn eq(&self, other: &MacintoshFlags) -> bool
fn eq(&self, other: &MacintoshFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.