Allow Clone of layout structs

This commit is contained in:
Jeremy Soller 2023-11-30 12:59:49 -07:00
parent daa5a6615c
commit 04c96f39c5
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -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,
@ -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,
@ -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,