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>
pub(super) const fn new(literal: &'a str, style: CommentStyle<'a>) -> Self
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§
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
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