Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Derive Debug for emitter's Event
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 2, 2022
1 parent e2cef39 commit 5299f1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libyaml/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ struct EmitterPinned<'a> {
write_error: Option<io::Error>,
}

#[derive(Debug)]
pub(crate) enum Event<'a> {
StreamStart,
StreamEnd,
Expand All @@ -35,23 +36,27 @@ pub(crate) enum Event<'a> {
MappingEnd,
}

#[derive(Debug)]
pub(crate) struct Scalar<'a> {
pub tag: Option<String>,
pub value: &'a str,
pub style: ScalarStyle,
}

#[derive(Debug)]
pub(crate) enum ScalarStyle {
Any,
Plain,
SingleQuoted,
Literal,
}

#[derive(Debug)]
pub(crate) struct Sequence {
pub tag: Option<String>,
}

#[derive(Debug)]
pub(crate) struct Mapping {
pub tag: Option<String>,
}
Expand Down

0 comments on commit 5299f1e

Please sign in to comment.