pub enum YamlConsumer {
Libyaml,
Jsyaml,
RYaml,
}Expand description
A real-world YAML parser whose accept/reject behavior Panache mirrors. These
are distinct measured consumers, not interchangeable libyaml wrappers — see
scripts/yaml-oracle/oracle.json and tests/yaml/consumer-matrix.md.
Variants§
Libyaml
pandoc’s Haskell yaml (libyaml, ≈ YAML 1.1). Reads frontmatter. The
lenient baseline: accepts duplicate keys (last value wins) and tabs in
some positions.
Jsyaml
js-yaml (YAML 1.2). Reads Quarto frontmatter and hashpipe #| options.
Rejects duplicate keys and tabs.
RYaml
R’s yaml package (libyaml-based), used by the RMarkdown toolchain —
rmarkdown::yaml_front_matter for frontmatter and knitr for #| chunk
options. Like libyaml but, measured against the suite, additionally
REJECTS duplicate keys and tabs.
Trait Implementations§
Source§impl Clone for YamlConsumer
impl Clone for YamlConsumer
Source§fn clone(&self) -> YamlConsumer
fn clone(&self) -> YamlConsumer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for YamlConsumer
Source§impl Debug for YamlConsumer
impl Debug for YamlConsumer
impl Eq for YamlConsumer
Source§impl PartialEq for YamlConsumer
impl PartialEq for YamlConsumer
Source§fn eq(&self, other: &YamlConsumer) -> bool
fn eq(&self, other: &YamlConsumer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YamlConsumer
Auto Trait Implementations§
impl Freeze for YamlConsumer
impl RefUnwindSafe for YamlConsumer
impl Send for YamlConsumer
impl Sync for YamlConsumer
impl Unpin for YamlConsumer
impl UnsafeUnpin for YamlConsumer
impl UnwindSafe for YamlConsumer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more