[wasm-rust] Derive some friendly traits

This commit is contained in:
Simon Cozens 2023-03-10 14:31:56 +00:00 committed by Behdad Esfahbod
parent 6ff994f31d
commit 0a16c60b42
1 changed files with 1 additions and 0 deletions

View File

@ -378,6 +378,7 @@ struct CBufferContents {
/// representing glyph positioning. In Rust, this would
/// require lots of zipping and unzipping, so we zip them
/// together into a single structure for you.
#[derive(Debug, Clone, Copy)]
pub struct Glyph {
/// The Unicode codepoint or glyph ID of the item
pub codepoint: u32,