pub struct InlineBlockCommentToken { /* private fields */ }
Expand description
A token sequence that is an inline block comment. (like "/' comment '/"
. not like "/' one '/ /' two '/"
)
§Examples
use plantuml_parser::{InlineBlockCommentToken, ParseContainer};
let input = " /' comment '/ footer EXAMPLE FOOTER "; /// The last part of "footer EXAMPLE FOOTER " is rest part.
let (rest, (raws, token)) = InlineBlockCommentToken::parse(input.into())?;
let combined_raw: ParseContainer = raws.into();
assert_eq!(rest, "footer EXAMPLE FOOTER ");
assert_eq!(combined_raw, " /' comment '/ ");
Implementations§
Source§impl InlineBlockCommentToken
impl InlineBlockCommentToken
Sourcepub fn parse(input: ParseContainer) -> ParseResult<Self>
pub fn parse(input: ParseContainer) -> ParseResult<Self>
Tries to parse InlineBlockCommentToken
pub fn comment(&self) -> &str
Trait Implementations§
Source§impl Clone for InlineBlockCommentToken
impl Clone for InlineBlockCommentToken
Source§fn clone(&self) -> InlineBlockCommentToken
fn clone(&self) -> InlineBlockCommentToken
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§
impl Freeze for InlineBlockCommentToken
impl RefUnwindSafe for InlineBlockCommentToken
impl Send for InlineBlockCommentToken
impl Sync for InlineBlockCommentToken
impl Unpin for InlineBlockCommentToken
impl UnwindSafe for InlineBlockCommentToken
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