Enum quire::ast::Ast [−][src]
pub enum Ast { Map(Pos, Tag, BTreeMap<String, Ast>), Seq(Pos, Tag, Vec<Ast>), Scalar(Pos, Tag, ScalarKind, String), Null(Pos, Tag, NullKind), }
Yaml node
Variants
Map(Pos, Tag, BTreeMap<String, Ast>)
Mapping node
Seq(Pos, Tag, Vec<Ast>)
Sequence node
Scalar(Pos, Tag, ScalarKind, String)
Scalar node (except null)
Null(Pos, Tag, NullKind)
Null node
Methods
impl Ast
[src]
impl Ast
pub fn pos(&self) -> Pos
[src]
pub fn pos(&self) -> Pos
pub fn tag<'x>(&'x self) -> &'x Tag
[src]
pub fn tag<'x>(&'x self) -> &'x Tag
pub fn with_tag(self, tag: Tag) -> Ast
[src]
pub fn with_tag(self, tag: Tag) -> Ast
pub fn void(pos: &Pos) -> Ast
[src]
pub fn void(pos: &Pos) -> Ast
A special null value that is used when node inside is errorneous
Trait Implementations
impl Debug for Ast
[src]
impl Debug for Ast
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Ast
[src]
impl Display for Ast