Struct plantuml_parser::EmptyLine
source · pub struct EmptyLine;
Expand description
A token sequence that is an empty line. (like " \t \n"
, "' comment\n"
)
\n
\n
\t \n
' comment\n
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"
.)
Trait Implementations§
Auto Trait Implementations§
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