Struct truetype::tables::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 for MacintoshFlags
impl PartialEq 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 ==
.source§impl Read for MacintoshFlags
impl Read for MacintoshFlags
source§impl Write for MacintoshFlags
impl Write for MacintoshFlags
impl Copy for MacintoshFlags
impl Eq for MacintoshFlags
impl StructuralPartialEq for MacintoshFlags
Auto Trait Implementations§
impl RefUnwindSafe for MacintoshFlags
impl Send for MacintoshFlags
impl Sync for MacintoshFlags
impl Unpin for MacintoshFlags
impl UnwindSafe for MacintoshFlags
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