pub enum PlantUmlLineKind {
Start(StartLine),
End(EndLine),
BlockCommentOpen(BlockCommentOpenLine),
BlockCommentClose(BlockCommentCloseLine),
Include(IncludeLine),
Title(TitleLine),
Header(HeaderLine),
Footer(FooterLine),
Empty,
InComment(Box<PlantUmlLineKind>),
Others,
}
Expand description
A kind of PlantUML lines to be handled by plantuml-parser
. A line that cannot be handled is set to Others
.
Variants§
Start(StartLine)
@start[a-z]*(id=MY_OWN_ID)
| @start[a-z]* MY_OWN_ID
(e.g. @startuml
)
End(EndLine)
@end[a-z]*
(e.g. @enduml
)
BlockCommentOpen(BlockCommentOpenLine)
"/' begin\n"
BlockCommentClose(BlockCommentCloseLine)
"end '/\n"
Include(IncludeLine)
!include <filepath>
| !include <filepath>!<id>
(e.g. !include foo.puml!1
)
Title(TitleLine)
title <text>
(e.g. title TITLE
)
Header(HeaderLine)
header <text>
(e.g. header HEADER
)
footer <text>
(e.g. footer FOOTER
)
Empty
empty line
InComment(Box<PlantUmlLineKind>)
in comment
Others
others
Trait Implementations§
Source§impl Clone for PlantUmlLineKind
impl Clone for PlantUmlLineKind
Source§fn clone(&self) -> PlantUmlLineKind
fn clone(&self) -> PlantUmlLineKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PlantUmlLineKind
impl RefUnwindSafe for PlantUmlLineKind
impl Send for PlantUmlLineKind
impl Sync for PlantUmlLineKind
impl Unpin for PlantUmlLineKind
impl UnwindSafe for PlantUmlLineKind
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