pub struct LineDelimiter {
pub start: String,
pub requires_boundary: bool,
pub kind: CommentKind,
}Expand description
A token that opens a comment running to the end of the line.
Fields§
§start: StringThe opening token.
requires_boundary: boolOnly open a comment at the start of the source or after ASCII whitespace, so a token that also occurs inside an identifier does not swallow the rest of the line.
kind: CommentKindThe kind to record, which is what the policy then judges.
Trait Implementations§
Source§impl Clone for LineDelimiter
impl Clone for LineDelimiter
Source§fn clone(&self) -> LineDelimiter
fn clone(&self) -> LineDelimiter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineDelimiter
impl Debug for LineDelimiter
Source§impl<'de> Deserialize<'de> for LineDelimiter
impl<'de> Deserialize<'de> for LineDelimiter
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 LineDelimiter
Source§impl PartialEq for LineDelimiter
impl PartialEq for LineDelimiter
Source§impl Serialize for LineDelimiter
impl Serialize for LineDelimiter
impl StructuralPartialEq for LineDelimiter
Auto Trait Implementations§
impl Freeze for LineDelimiter
impl RefUnwindSafe for LineDelimiter
impl Send for LineDelimiter
impl Sync for LineDelimiter
impl Unpin for LineDelimiter
impl UnsafeUnpin for LineDelimiter
impl UnwindSafe for LineDelimiter
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