We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a794fa + 981ef5b commit 5473f87Copy full SHA for 5473f87
src/renderer/mod.rs
@@ -225,6 +225,7 @@ impl Renderer {
225
}
226
227
impl Renderer {
228
+ /// Render a diagnostic, a series of [`Group`]s
229
pub fn render(&self, groups: &[Group<'_>]) -> String {
230
if self.short_message {
231
self.render_short_message(groups).unwrap()
src/snippet.rs
@@ -18,6 +18,10 @@ pub(crate) struct Id<'a> {
18
19
20
/// An [`Element`] container
21
+///
22
+/// A [diagnostic][crate::Renderer::render] is made of several `Group`s.
23
+/// `Group`s are used to [annotate][AnnotationKind::Primary] [`Snippet`]s
24
+/// with different [semantic reasons][Title].
25
#[derive(Clone, Debug)]
26
pub struct Group<'a> {
27
pub(crate) primary_level: Level<'a>,
0 commit comments