Struct plantuml_parser::TitleLine
source · pub struct TitleLine { /* private fields */ }
Expand description
A token sequence that is a line containing a TitleToken
. (like "\ttitle EXAMPLE TITLE \n"
.)
Examples
use plantuml_parser::{TitleLine, ParseContainer};
let input = " title EXAMPLE TITLE\n";
let (rest, (raws, token)) = TitleLine::parse(input.into())?;
let combined_raw: ParseContainer = raws.into();
assert_eq!(rest, "");
assert_eq!(combined_raw, " title EXAMPLE TITLE\n");
assert_eq!(token.title(), "EXAMPLE TITLE");
Implementations§
source§impl TitleLine
impl TitleLine
sourcepub fn parse(input: ParseContainer) -> ParseResult<Self>
pub fn parse(input: ParseContainer) -> ParseResult<Self>
Tries to parse TitleLine
. (e.g. " title EXAMPLE TITLE \n"
.)
Methods from Deref<Target = TitleToken>§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TitleLine
impl Send for TitleLine
impl Sync for TitleLine
impl Unpin for TitleLine
impl UnwindSafe for TitleLine
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