Struct rustfmt_nightly::attr::doc_comment::DocCommentFormatter
source · pub(super) struct DocCommentFormatter<'a> {
literal: &'a str,
style: CommentStyle<'a>,
}
Expand description
Formats a string as a doc comment using the given CommentStyle
.
Fields
literal: &'a str
style: CommentStyle<'a>
Implementations
sourceimpl<'a> DocCommentFormatter<'a>
impl<'a> DocCommentFormatter<'a>
sourcepub fn new(literal: &'a str, style: CommentStyle<'a>) -> Self
pub fn new(literal: &'a str, style: CommentStyle<'a>) -> Self
Constructs a new DocCommentFormatter
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for DocCommentFormatter<'a>
impl<'a> Send for DocCommentFormatter<'a>
impl<'a> Sync for DocCommentFormatter<'a>
impl<'a> Unpin for DocCommentFormatter<'a>
impl<'a> UnwindSafe for DocCommentFormatter<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes