Struct ScaleFlags
pub struct ScaleFlags(/* private fields */);Expand description
Flags that define how scaling and hinting is applied.
Implementations§
§impl ScaleFlags
impl ScaleFlags
pub const HORIZONTAL_SNAP: ScaleFlags
pub const HORIZONTAL_SNAP: ScaleFlags
Stem width snapping.
pub const VERTICAL_SNAP: ScaleFlags
pub const VERTICAL_SNAP: ScaleFlags
Stem height snapping.
pub const STEM_ADJUST: ScaleFlags
pub const STEM_ADJUST: ScaleFlags
Stem width/height adjustment.
pub const MONO: ScaleFlags
pub const MONO: ScaleFlags
Monochrome rendering.
pub const NO_HORIZONTAL: ScaleFlags
pub const NO_HORIZONTAL: ScaleFlags
Disable horizontal hinting.
pub const NO_VERTICAL: ScaleFlags
pub const NO_VERTICAL: ScaleFlags
Disable vertical hinting.
pub const NO_ADVANCE: ScaleFlags
pub const NO_ADVANCE: ScaleFlags
Disable advance hinting.
§impl ScaleFlags
impl ScaleFlags
pub const fn from_bits_truncate(bits: u32) -> ScaleFlags
pub const fn from_bits_truncate(bits: u32) -> ScaleFlags
Creates new flags, truncating the given bits to valid values.
pub const fn contains(self, other: ScaleFlags) -> bool
pub const fn contains(self, other: ScaleFlags) -> bool
Returns true if self contains all flags in other.
pub const fn intersects(self, other: ScaleFlags) -> bool
pub const fn intersects(self, other: ScaleFlags) -> bool
Returns true if self contains any flags in other.
Trait Implementations§
§impl BitAnd for ScaleFlags
impl BitAnd for ScaleFlags
§type Output = ScaleFlags
type Output = ScaleFlags
The resulting type after applying the
& operator.§fn bitand(self, rhs: ScaleFlags) -> <ScaleFlags as BitAnd>::Output
fn bitand(self, rhs: ScaleFlags) -> <ScaleFlags as BitAnd>::Output
Performs the
& operation. Read more§impl BitAndAssign for ScaleFlags
impl BitAndAssign for ScaleFlags
§fn bitand_assign(&mut self, rhs: ScaleFlags)
fn bitand_assign(&mut self, rhs: ScaleFlags)
Performs the
&= operation. Read more§impl BitOr for ScaleFlags
impl BitOr for ScaleFlags
§type Output = ScaleFlags
type Output = ScaleFlags
The resulting type after applying the
| operator.§fn bitor(self, rhs: ScaleFlags) -> <ScaleFlags as BitOr>::Output
fn bitor(self, rhs: ScaleFlags) -> <ScaleFlags as BitOr>::Output
Performs the
| operation. Read more§impl BitOrAssign for ScaleFlags
impl BitOrAssign for ScaleFlags
§fn bitor_assign(&mut self, rhs: ScaleFlags)
fn bitor_assign(&mut self, rhs: ScaleFlags)
Performs the
|= operation. Read more§impl Clone for ScaleFlags
impl Clone for ScaleFlags
§fn clone(&self) -> ScaleFlags
fn clone(&self) -> ScaleFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ScaleFlags
impl Debug for ScaleFlags
§impl Default for ScaleFlags
impl Default for ScaleFlags
§fn default() -> ScaleFlags
fn default() -> ScaleFlags
Returns the “default value” for a type. Read more
§impl Not for ScaleFlags
impl Not for ScaleFlags
§type Output = ScaleFlags
type Output = ScaleFlags
The resulting type after applying the
! operator.§impl PartialEq for ScaleFlags
impl PartialEq for ScaleFlags
impl Copy for ScaleFlags
impl Eq for ScaleFlags
impl StructuralPartialEq for ScaleFlags
Auto Trait Implementations§
impl Freeze for ScaleFlags
impl RefUnwindSafe for ScaleFlags
impl Send for ScaleFlags
impl Sync for ScaleFlags
impl Unpin for ScaleFlags
impl UnsafeUnpin for ScaleFlags
impl UnwindSafe for ScaleFlags
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.