Skip to content

Commit

Permalink
Allow Clone of layout structs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 30, 2023
1 parent daa5a66 commit 04c96f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use alloc::vec::Vec;
use crate::{CacheKey, Color};

/// A laid out glyph
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct LayoutGlyph {
/// Start index of cluster in original line
pub start: usize,
Expand Down Expand Up @@ -52,7 +52,7 @@ pub struct LayoutGlyph {
pub metadata: usize,
}

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct PhysicalGlyph {
/// Cache key, see [CacheKey]
pub cache_key: CacheKey,
Expand Down Expand Up @@ -82,7 +82,7 @@ impl LayoutGlyph {
}

/// A line of laid out glyphs
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct LayoutLine {
/// Width of the line
pub w: f32,
Expand Down

0 comments on commit 04c96f3

Please sign in to comment.