Struct annotate_snippets::Renderer
source · pub struct Renderer { /* private fields */ }
Expand description
A renderer for Message
s
Implementations§
source§impl Renderer
impl Renderer
sourcepub const fn anonymized_line_numbers(
self,
anonymized_line_numbers: bool,
) -> Self
pub const fn anonymized_line_numbers( self, anonymized_line_numbers: bool, ) -> Self
Anonymize line numbers
This enables (or disables) line number anonymization. When enabled, line numbers are replaced
with LL
.
§Example
--> $DIR/whitespace-trimming.rs:4:193
|
LL | ... let _: () = 42;
| ^^ expected (), found integer
|
pub const fn term_width(self, term_width: usize) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Renderer
impl RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl UnwindSafe for Renderer
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