Add more Debug implementations
I generally like to implement Debug on these kind of types.
This commit is contained in:
parent
7d50d17369
commit
440d24ffa0
15 changed files with 38 additions and 1 deletions
|
|
@ -308,6 +308,7 @@ fn shape_skip(
|
|||
}
|
||||
|
||||
/// A shaped glyph
|
||||
#[derive(Debug)]
|
||||
pub struct ShapeGlyph {
|
||||
pub start: usize,
|
||||
pub end: usize,
|
||||
|
|
@ -351,6 +352,7 @@ impl ShapeGlyph {
|
|||
}
|
||||
|
||||
/// A shaped word (for word wrapping)
|
||||
#[derive(Debug)]
|
||||
pub struct ShapeWord {
|
||||
pub blank: bool,
|
||||
pub glyphs: Vec<ShapeGlyph>,
|
||||
|
|
@ -428,6 +430,7 @@ impl ShapeWord {
|
|||
}
|
||||
|
||||
/// A shaped span (for bidirectional processing)
|
||||
#[derive(Debug)]
|
||||
pub struct ShapeSpan {
|
||||
pub level: unicode_bidi::Level,
|
||||
pub words: Vec<ShapeWord>,
|
||||
|
|
@ -510,6 +513,7 @@ impl ShapeSpan {
|
|||
}
|
||||
|
||||
/// A shaped line (or paragraph)
|
||||
#[derive(Debug)]
|
||||
pub struct ShapeLine {
|
||||
pub rtl: bool,
|
||||
pub spans: Vec<ShapeSpan>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue