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 e3658b6 + b816eb9 commit 4566d4aCopy full SHA for 4566d4a
src/lib.rs
@@ -1,4 +1,5 @@
1
#![deny(rust_2018_idioms)]
2
+#![warn(missing_debug_implementations)]
3
4
//! A library for formatting of text or programming code snippets.
5
//!
src/renderer/mod.rs
@@ -24,7 +24,7 @@ use stylesheet::Stylesheet;
24
pub const DEFAULT_TERM_WIDTH: usize = 140;
25
26
/// A renderer for [`Message`]s
27
-#[derive(Clone)]
+#[derive(Clone,Debug)]
28
pub struct Renderer {
29
anonymized_line_numbers: bool,
30
term_width: usize,
src/snippet.rs
@@ -15,6 +15,7 @@ use std::ops::Range;
15
/// Primary structure provided for formatting
16
///
17
/// See [`Level::title`] to create a [`Message`]
18
+#[derive(Debug)]
19
pub struct Message<'a> {
20
pub(crate) level: Level,
21
pub(crate) id: Option<&'a str>,
@@ -55,6 +56,7 @@ impl<'a> Message<'a> {
55
56
57
/// One `Snippet` is meant to represent a single, continuous,
58
/// slice of source code that you want to annotate.
59
60
pub struct Snippet<'a> {
61
pub(crate) origin: Option<&'a str>,
62
pub(crate) line_start: usize,
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments