Struct embedded_text::plugin::NoPlugin [−][src]
pub struct NoPlugin<C>(_)
where
C: PixelColor;
Expand description
Placeholder type when no plugin is used.
Trait Implementations
Generate the next text token.
Modify the current token immediately before it is rendered. Read more
fn post_render<T, D>(
&mut self,
_draw_target: &mut D,
_character_style: &T,
_text: &str,
_bounds: Rectangle
) -> Result<(), D::Error> where
T: TextRenderer<Color = C>,
D: DrawTarget<Color = C>,
fn post_render<T, D>(
&mut self,
_draw_target: &mut D,
_character_style: &T,
_text: &str,
_bounds: Rectangle
) -> Result<(), D::Error> where
T: TextRenderer<Color = C>,
D: DrawTarget<Color = C>, Called after a piece of text is rendered.
fn on_start_render<S: TextRenderer>(
&mut self,
_text_box: &TextBox<'a, S, Self>,
_cursor: &mut Cursor
)
fn on_start_render<S: TextRenderer>(
&mut self,
_text_box: &TextBox<'a, S, Self>,
_cursor: &mut Cursor
)Called before TextBox rendering is started.
Auto Trait Implementations
impl<C> RefUnwindSafe for NoPlugin<C> where
C: RefUnwindSafe, impl<C> UnwindSafe for NoPlugin<C> where
C: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
type Output = T
type Output = TShould always be Self
Casts the value.
Casts the value.
Casts the value.