Struct allsorts_no_std::tables::glyf::CompositeGlyphFlag [−][src]
Implementations
impl CompositeGlyphFlag
[src]
pub const ARG_1_AND_2_ARE_WORDS: CompositeGlyphFlag
[src]
Bit 0: If this is set, the arguments are 16-bit (uint16 or int16); otherwise, they are bytes (uint8 or int8).
pub const ARGS_ARE_XY_VALUES: CompositeGlyphFlag
[src]
Bit 1: If this is set, the arguments are signed xy values; otherwise, they are unsigned point numbers.
pub const ROUND_XY_TO_GRID: CompositeGlyphFlag
[src]
Bit 2: For the xy values if the preceding is true.
pub const WE_HAVE_A_SCALE: CompositeGlyphFlag
[src]
Bit 3: This indicates that there is a simple scale for the component. Otherwise, scale = 1.0.
pub const MORE_COMPONENTS: CompositeGlyphFlag
[src]
Bit 4: Reserved, set to 0 Bit 5: Indicates at least one more glyph after this one.
pub const WE_HAVE_AN_X_AND_Y_SCALE: CompositeGlyphFlag
[src]
Bit 6: The x direction will use a different scale from the y direction.
pub const WE_HAVE_A_TWO_BY_TWO: CompositeGlyphFlag
[src]
Bit 7: There is a 2 by 2 transformation that will be used to scale the component.
pub const WE_HAVE_INSTRUCTIONS: CompositeGlyphFlag
[src]
Bit 8: Following the last component are instructions for the composite character.
pub const USE_MY_METRICS: CompositeGlyphFlag
[src]
Bit 9: If set, this forces the aw and lsb (and rsb) for the composite to be equal to those from this original glyph. This works for hinted and unhinted characters.
pub const OVERLAP_COMPOUND: CompositeGlyphFlag
[src]
Bit 10: If set, the components of the compound glyph overlap.
Use of this flag is not required in OpenType — that is, it is valid to have components overlap without having this flag set. It may affect behaviors in some platforms, however. (See Apple’s specification for details regarding behavior in Apple platforms.) When used, it must be set on the flag word for the first component. See additional remarks, above, for the similar OVERLAP_SIMPLE flag used in simple-glyph descriptions.
pub const SCALED_COMPONENT_OFFSET: CompositeGlyphFlag
[src]
Bit 11: The composite is designed to have the component offset scaled.
pub const UNSCALED_COMPONENT_OFFSET: CompositeGlyphFlag
[src]
Bit 12: The composite is designed not to have the component offset scaled.
pub const fn empty() -> CompositeGlyphFlag
[src]
Returns an empty set of flags
pub const fn all() -> CompositeGlyphFlag
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u16
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u16) -> Option<CompositeGlyphFlag>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u16) -> CompositeGlyphFlag
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u16) -> CompositeGlyphFlag
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: CompositeGlyphFlag) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: CompositeGlyphFlag) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: CompositeGlyphFlag)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: CompositeGlyphFlag)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: CompositeGlyphFlag)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: CompositeGlyphFlag, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
impl CompositeGlyphFlag
[src]
pub fn arg_1_and_2_are_words(self) -> bool
[src]
pub fn args_are_xy_values(self) -> bool
[src]
pub fn we_have_a_scale(self) -> bool
[src]
pub fn we_have_an_x_and_y_scale(self) -> bool
[src]
pub fn we_have_a_two_by_two(self) -> bool
[src]
pub fn more_components(self) -> bool
[src]
pub fn we_have_instructions(self) -> bool
[src]
Trait Implementations
impl Binary for CompositeGlyphFlag
[src]
impl BitAnd<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
type Output = CompositeGlyphFlag
The resulting type after applying the &
operator.
fn bitand(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn bitand_assign(&mut self, other: CompositeGlyphFlag)
[src]
Disables all flags disabled in the set.
impl BitOr<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
type Output = CompositeGlyphFlag
The resulting type after applying the |
operator.
fn bitor(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn bitor_assign(&mut self, other: CompositeGlyphFlag)
[src]
Adds the set of flags.
impl BitXor<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
type Output = CompositeGlyphFlag
The resulting type after applying the ^
operator.
fn bitxor(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn bitxor_assign(&mut self, other: CompositeGlyphFlag)
[src]
Toggles the set of flags.
impl Clone for CompositeGlyphFlag
[src]
fn clone(&self) -> CompositeGlyphFlag
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompositeGlyphFlag
[src]
impl Debug for CompositeGlyphFlag
[src]
impl Eq for CompositeGlyphFlag
[src]
impl Extend<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn extend<T: IntoIterator<Item = CompositeGlyphFlag>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn from_iter<T: IntoIterator<Item = CompositeGlyphFlag>>(
iterator: T
) -> CompositeGlyphFlag
[src]
iterator: T
) -> CompositeGlyphFlag
impl Hash for CompositeGlyphFlag
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for CompositeGlyphFlag
[src]
impl Not for CompositeGlyphFlag
[src]
type Output = CompositeGlyphFlag
The resulting type after applying the !
operator.
fn not(self) -> CompositeGlyphFlag
[src]
Returns the complement of this set of flags.
impl Octal for CompositeGlyphFlag
[src]
impl Ord for CompositeGlyphFlag
[src]
fn cmp(&self, other: &CompositeGlyphFlag) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn eq(&self, other: &CompositeGlyphFlag) -> bool
[src]
fn ne(&self, other: &CompositeGlyphFlag) -> bool
[src]
impl PartialOrd<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn partial_cmp(&self, other: &CompositeGlyphFlag) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> ReadFrom<'a> for CompositeGlyphFlag
[src]
impl StructuralEq for CompositeGlyphFlag
[src]
impl StructuralPartialEq for CompositeGlyphFlag
[src]
impl Sub<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
type Output = CompositeGlyphFlag
The resulting type after applying the -
operator.
fn sub(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<CompositeGlyphFlag> for CompositeGlyphFlag
[src]
fn sub_assign(&mut self, other: CompositeGlyphFlag)
[src]
Disables all flags enabled in the set.
impl UpperHex for CompositeGlyphFlag
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompositeGlyphFlag
impl Send for CompositeGlyphFlag
impl Sync for CompositeGlyphFlag
impl Unpin for CompositeGlyphFlag
impl UnwindSafe for CompositeGlyphFlag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
[src]
T: ReadUnchecked<'a>,
type HostType = <T as ReadUnchecked<'a>>::HostType
pub fn read(
&mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<'a, T> ReadFixedSizeDep<'a> for T where
T: ReadUnchecked<'a>,
[src]
T: ReadUnchecked<'a>,
impl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
[src]
T: ReadFrom<'a>,
type HostType = T
pub const SIZE: usize
[src]
pub unsafe fn read_unchecked(
&mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
[src]
&mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,