impl Clone, Copy on public objects

This commit is contained in:
Noah Hellman 2023-02-04 20:10:56 +01:00
parent 477eadde1c
commit 0de7776020
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ pub enum QuoteType {
Double, Double,
} }
#[derive(Debug, PartialEq, Eq)] #[derive(Clone, Debug, PartialEq, Eq)]
pub enum EventKind { pub enum EventKind {
Enter(Container), Enter(Container),
Exit(Container), Exit(Container),
@ -66,7 +66,7 @@ pub enum EventKind {
Placeholder, Placeholder,
} }
#[derive(Debug, PartialEq, Eq)] #[derive(Clone, Debug, PartialEq, Eq)]
pub struct Event { pub struct Event {
pub kind: EventKind, pub kind: EventKind,
pub span: Span, pub span: Span,

View file

@ -261,7 +261,7 @@ pub enum Alignment {
} }
/// The type of an inline span link. /// The type of an inline span link.
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum SpanLinkType { pub enum SpanLinkType {
/// E.g. `[text](url)` /// E.g. `[text](url)`
Inline, Inline,
@ -270,7 +270,7 @@ pub enum SpanLinkType {
} }
/// The type of an inline link. /// The type of an inline link.
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum LinkType { pub enum LinkType {
/// E.g. `[text](url)`. /// E.g. `[text](url)`.
Span(SpanLinkType), Span(SpanLinkType),