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§
source§impl PlantumlMarkup
impl PlantumlMarkup
sourcepub fn new(markup: &str) -> PlantumlMarkup
pub fn new(markup: &str) -> PlantumlMarkup
Create a new PlantumlMarkup.
Trait Implementations§
source§impl DiagramMarkup for PlantumlMarkup
impl DiagramMarkup for PlantumlMarkup
Auto Trait Implementations§
impl Freeze for PlantumlMarkup
impl RefUnwindSafe for PlantumlMarkup
impl Send for PlantumlMarkup
impl Sync for PlantumlMarkup
impl Unpin for PlantumlMarkup
impl UnwindSafe for PlantumlMarkup
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