pub struct Ast(pub Vec<Root>);
Expand description
Abstract syntax tree for property list files
This is simply a list of Root
nodes.
Tuple Fields§
§0: Vec<Root>
Implementations§
source§impl Ast
impl Ast
sourcepub fn from_pl_source_code(source: &str) -> (Ast, Vec<ParseWarning>)
pub fn from_pl_source_code(source: &str) -> (Ast, Vec<ParseWarning>)
Build an AST directly from source code.
sourcepub fn from_cst(cst: Cst, errors: &mut Vec<ParseWarning>) -> Vec<Root>
pub fn from_cst(cst: Cst, errors: &mut Vec<ParseWarning>) -> Vec<Root>
Build an AST from a CST.
sourcepub fn lower(self, char_display_format: CharDisplayFormat) -> Cst
pub fn lower(self, char_display_format: CharDisplayFormat) -> Cst
Lower an AST to a CST.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Ast
impl<'arbitrary> Arbitrary<'arbitrary> for Ast
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreimpl Eq for Ast
impl StructuralEq for Ast
impl StructuralPartialEq for Ast
Auto Trait Implementations§
impl RefUnwindSafe for Ast
impl Send for Ast
impl Sync for Ast
impl Unpin for Ast
impl UnwindSafe for Ast
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