pub enum LeadingCommentCapture {
SingleNearest,
AllLeading,
AllSingleOneMulti,
}Expand description
Controls how leading comments are captured for a statement.
Variants§
SingleNearest
Capture only the single nearest leading comment.
AllLeading
Capture all contiguous leading comments, stopping at the first blank line.
AllSingleOneMulti
Capture all contiguous single-line or at most one multi-line leading comments.
Trait Implementations§
Source§impl Clone for LeadingCommentCapture
impl Clone for LeadingCommentCapture
Source§fn clone(&self) -> LeadingCommentCapture
fn clone(&self) -> LeadingCommentCapture
Returns a duplicate 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 moreSource§impl Debug for LeadingCommentCapture
impl Debug for LeadingCommentCapture
Source§impl Default for LeadingCommentCapture
impl Default for LeadingCommentCapture
Source§fn default() -> LeadingCommentCapture
fn default() -> LeadingCommentCapture
Returns the “default value” for a type. Read more
Source§impl PartialEq for LeadingCommentCapture
impl PartialEq for LeadingCommentCapture
impl Copy for LeadingCommentCapture
impl Eq for LeadingCommentCapture
impl StructuralPartialEq for LeadingCommentCapture
Auto Trait Implementations§
impl Freeze for LeadingCommentCapture
impl RefUnwindSafe for LeadingCommentCapture
impl Send for LeadingCommentCapture
impl Sync for LeadingCommentCapture
impl Unpin for LeadingCommentCapture
impl UnwindSafe for LeadingCommentCapture
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