pub struct EmptyLine;
Expand description
A token sequence that is an empty line. (like " \t \n"
, "' comment\n"
, " /' oneline block comment '/ "
.)
\n
\n
\t \n
' comment\n
- “ /’ oneline block comment ’/ “
§Examples
use plantuml_parser::{EmptyLine, ParseContainer};
let input = " \n";
let (rest, (raws, _token)) = EmptyLine::parse(input.into())?;
let combined_raw: ParseContainer = raws.into();
assert_eq!(rest, "");
assert_eq!(combined_raw, " \n");
let input = " ' comment \n";
let (rest, (raws, _token)) = EmptyLine::parse(input.into())?;
let combined_raw: ParseContainer = raws.into();
assert_eq!(rest, "");
assert_eq!(combined_raw, " ' comment \n");
Implementations§
Source§impl EmptyLine
impl EmptyLine
Sourcepub fn parse(input: ParseContainer) -> ParseResult<Self>
pub fn parse(input: ParseContainer) -> ParseResult<Self>
Tries to parse EmptyLine
. (e.g. " \n"
, " ' comment \n"
, " /' oneline block comment '/ "
.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmptyLine
impl RefUnwindSafe for EmptyLine
impl Send for EmptyLine
impl Sync for EmptyLine
impl Unpin for EmptyLine
impl UnwindSafe for EmptyLine
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