1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

Derive PartialEq for Vertex, Mesh, Row, Galley and Shape

This commit is contained in:
Emil Ernerfeldt
2021-03-13 12:58:17 +01:00
parent 6442d254a6
commit 30885b85f9
3 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ use super::cursor::*;
use emath::{pos2, NumExt, Rect, Vec2};
/// A collection of text locked into place.
#[derive(Clone, Debug, Default)]
#[derive(Clone, Debug, Default, PartialEq)]
pub struct Galley {
/// The full text, including any an all `\n`.
pub text: String,
@@ -39,7 +39,7 @@ pub struct Galley {
}
/// A typeset piece of text on a single row.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct Row {
/// The start of each character, probably starting at zero.
/// The last element is the end of the last character.