Trait tex_glyphs::fontstyles::FontModifiable
source · pub trait FontModifiable {
type R: AsRef<str>;
// Required methods
fn apply<'a>(self, mods: ModifierSeq) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_blackboard<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_fraktur<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_script<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_bold<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_smallcaps<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_monospaced<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_italic<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_oblique<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
fn make_sans<'a>(self) -> CharConverter<'a, Self::R>
where Self: 'a;
// Provided method
fn apply_modifiers<'a>(
self,
mods: &'a [FontModifier]
) -> CharConverter<'a, Self::R>
where Self: 'a + Sized { ... }
}
Expand description
A trait for applying font modifiers to something. Implemented for anything
that implements AsRef<str>
, and for CharConverter
for chaining.
Required Associated Types§
Required Methods§
sourcefn apply<'a>(self, mods: ModifierSeq) -> CharConverter<'a, Self::R>where
Self: 'a,
fn apply<'a>(self, mods: ModifierSeq) -> CharConverter<'a, Self::R>where
Self: 'a,
Apply the given modifiers to this object.
sourcefn make_blackboard<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_blackboard<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Blackboard
modifier.
sourcefn make_fraktur<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_fraktur<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Fraktur
modifier.
sourcefn make_script<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_script<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Script
modifier.
sourcefn make_bold<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_bold<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Bold
modifier.
sourcefn make_smallcaps<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_smallcaps<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Capitals
modifier.
sourcefn make_monospaced<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_monospaced<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Monospaced
modifier.
sourcefn make_italic<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_italic<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Italic
modifier.
sourcefn make_oblique<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_oblique<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the Oblique
modifier.
sourcefn make_sans<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
fn make_sans<'a>(self) -> CharConverter<'a, Self::R>where
Self: 'a,
Applies the SansSerif
modifier.
Provided Methods§
sourcefn apply_modifiers<'a>(
self,
mods: &'a [FontModifier]
) -> CharConverter<'a, Self::R>where
Self: 'a + Sized,
fn apply_modifiers<'a>(
self,
mods: &'a [FontModifier]
) -> CharConverter<'a, Self::R>where
Self: 'a + Sized,
Add the given modifiers to this object.