pub struct CommentSyntax {
pub line: Option<String>,
pub block: Option<(String, String)>,
}Expand description
A language’s comment markers.
Fields§
§line: Option<String>Starts a comment that runs to the end of the line (//, #).
block: Option<(String, String)>Opens and closes a block comment (/*, */).
Trait Implementations§
Source§impl Clone for CommentSyntax
impl Clone for CommentSyntax
Source§impl Debug for CommentSyntax
impl Debug for CommentSyntax
Source§impl Default for CommentSyntax
impl Default for CommentSyntax
Source§impl<'de> Deserialize<'de> for CommentSyntax
impl<'de> Deserialize<'de> for CommentSyntax
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommentSyntax
Source§impl PartialEq for CommentSyntax
impl PartialEq for CommentSyntax
Source§impl Serialize for CommentSyntax
impl Serialize for CommentSyntax
impl StructuralPartialEq for CommentSyntax
Auto Trait Implementations§
impl Freeze for CommentSyntax
impl RefUnwindSafe for CommentSyntax
impl Send for CommentSyntax
impl Sync for CommentSyntax
impl Unpin for CommentSyntax
impl UnsafeUnpin for CommentSyntax
impl UnwindSafe for CommentSyntax
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