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"
.)
pub fn inline_block_comment(&self) -> Option<&InlineBlockCommentToken>
Methods from Deref<Target = TitleToken>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TitleLine
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