pub struct CommentConfig {
pub line_marker: &'static str,
pub block_start: &'static str,
pub block_end: &'static str,
pub nested_blocks: bool,
}Expand description
Configuration for comment scanning.
Fields§
§line_marker: &'static strMarker for line comments (e.g., “//”).
block_start: &'static strMarker for block comment start (e.g., “/*”).
block_end: &'static strMarker for block comment end (e.g., “*/”).
nested_blocks: boolWhether block comments can be nested.
Implementations§
Auto Trait Implementations§
impl Freeze for CommentConfig
impl RefUnwindSafe for CommentConfig
impl Send for CommentConfig
impl Sync for CommentConfig
impl Unpin for CommentConfig
impl UnwindSafe for CommentConfig
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