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,
}
#[derive(Debug, PartialEq, Eq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum EventKind {
Enter(Container),
Exit(Container),
@ -66,7 +66,7 @@ pub enum EventKind {
Placeholder,
}
#[derive(Debug, PartialEq, Eq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Event {
pub kind: EventKind,
pub span: Span,

View file

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