Struct plantuml_parser::FooterLine
source · pub struct FooterLine { /* private fields */ }
Expand description
A token sequence that is a line containing a FooterToken
. (like "\tfooter EXAMPLE FOOTER \n"
.)
Examples
use plantuml_parser::{FooterLine, ParseContainer};
let input = " footer EXAMPLE FOOTER\n";
let (rest, (raws, token)) = FooterLine::parse(input.into())?;
let combined_raw: ParseContainer = raws.into();
assert_eq!(rest, "");
assert_eq!(combined_raw, " footer EXAMPLE FOOTER\n");
assert_eq!(token.footer(), "EXAMPLE FOOTER");
Implementations§
sourcepub fn parse(input: ParseContainer) -> ParseResult<Self>
pub fn parse(input: ParseContainer) -> ParseResult<Self>
Tries to parse FooterLine
. (e.g. " footer EXAMPLE FOOTER\n"
.)
Methods from Deref<Target = FooterToken>§
Trait Implementations§
source§fn clone(&self) -> FooterLine
fn clone(&self) -> FooterLine
Returns a copy 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§
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