pub struct AnnotateRenderer {
pub config: RenderConfig,
}Expand description
Strict adapter from prepared snapshots to annotate-snippets.
Fields§
§config: RenderConfigImplementations§
Source§impl AnnotateRenderer
impl AnnotateRenderer
pub const fn new(config: RenderConfig) -> Self
pub fn render( &self, diagnostic: &PreparedDiagnostic<'_>, ) -> Result<String, RenderError>
Trait Implementations§
Source§impl Clone for AnnotateRenderer
impl Clone for AnnotateRenderer
impl Copy for AnnotateRenderer
Source§impl Debug for AnnotateRenderer
impl Debug for AnnotateRenderer
Source§impl Default for AnnotateRenderer
impl Default for AnnotateRenderer
impl Eq for AnnotateRenderer
Source§impl PartialEq for AnnotateRenderer
impl PartialEq for AnnotateRenderer
impl StructuralPartialEq for AnnotateRenderer
Auto Trait Implementations§
impl Forget for AnnotateRenderer
impl Freeze for AnnotateRenderer
impl Move for AnnotateRenderer
impl RefUnwindSafe for AnnotateRenderer
impl Send for AnnotateRenderer
impl Sync for AnnotateRenderer
impl Unpin for AnnotateRenderer
impl UnsafeUnpin for AnnotateRenderer
impl UnwindSafe for AnnotateRenderer
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