Struct mdbook_angular::AngularRenderer
source · pub struct AngularRenderer {}
Expand description
An mdbook Renderer
for including live angular code samples
Implementations§
source§impl AngularRenderer
impl AngularRenderer
pub fn new() -> Self
sourcepub fn render_mut(&self, ctx: &mut RenderContext) -> Result<()>
pub fn render_mut(&self, ctx: &mut RenderContext) -> Result<()>
Renders the given RenderContext
This function can make changes to the context, notably to edit the markdown files to insert angular code blocks, live angular applications, and playground tables.
Trait Implementations§
source§impl Default for AngularRenderer
impl Default for AngularRenderer
source§impl Renderer for AngularRenderer
impl Renderer for AngularRenderer
source§fn render(&self, ctx: &RenderContext) -> Result<()>
fn render(&self, ctx: &RenderContext) -> Result<()>
Prefer Self::render_mut
The AngularRenderer
has to modify the book passed in with the context,
so this function has to clone the given context in order to mutate it.
Using Self::render_mut
can prevent a needless copy.
Auto Trait Implementations§
impl RefUnwindSafe for AngularRenderer
impl Send for AngularRenderer
impl Sync for AngularRenderer
impl Unpin for AngularRenderer
impl UnwindSafe for AngularRenderer
Blanket Implementations§
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