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§
source§impl<'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§
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