pub enum ScriptComment {
Block(String),
Line(String),
}
Expand description
A line or block comment.
Variants§
Implementations§
Source§impl ScriptComment
impl ScriptComment
pub fn decode_comment(input: &[u8]) -> IResult<&[u8], ScriptComment, Error>
pub fn decode_line_comment(input: &[u8]) -> IResult<&[u8], ScriptComment, Error>
pub fn decode_block_comment( input: &[u8], ) -> IResult<&[u8], ScriptComment, Error>
Trait Implementations§
Source§impl Debug for ScriptComment
impl Debug for ScriptComment
Source§impl PartialEq for ScriptComment
impl PartialEq for ScriptComment
impl StructuralPartialEq for ScriptComment
Auto Trait Implementations§
impl Freeze for ScriptComment
impl RefUnwindSafe for ScriptComment
impl Send for ScriptComment
impl Sync for ScriptComment
impl Unpin for ScriptComment
impl UnwindSafe for ScriptComment
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