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.