Struct subplot::PlantumlMarkup
source · [−]pub struct PlantumlMarkup { /* private fields */ }
Expand description
A code block with PlantUML markup.
use subplot::{DiagramMarkup, PlantumlMarkup};
let markup = "@startuml\nAlice -> Bob\n@enduml";
let svg = PlantumlMarkup::new(&markup).as_svg().unwrap();
assert!(svg.len() > 0);
Implementations
sourceimpl PlantumlMarkup
impl PlantumlMarkup
sourcepub fn new(markup: &str) -> PlantumlMarkup
pub fn new(markup: &str) -> PlantumlMarkup
Create a new PlantumlMarkup.
Trait Implementations
sourceimpl DiagramMarkup for PlantumlMarkup
impl DiagramMarkup for PlantumlMarkup
Auto Trait Implementations
impl RefUnwindSafe for PlantumlMarkup
impl Send for PlantumlMarkup
impl Sync for PlantumlMarkup
impl Unpin for PlantumlMarkup
impl UnwindSafe for PlantumlMarkup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more