pub struct LogicalDocument { /* private fields */ }Implementations§
Source§impl LogicalDocument
impl LogicalDocument
Sourcepub fn parse(syntax: &SyntaxTree) -> Self
pub fn parse(syntax: &SyntaxTree) -> Self
Groups physical lines into statements and classifies each one the way GNU Make reads it. Recipe-prefixed lines are recipes only while a rule is pending: a rule line opens the pending state and any assignment, directive, include, define, or unrecognized line closes it. A line in a branch GNU Make never reads does neither.
pub fn statements(&self) -> &[LogicalStatement]
Trait Implementations§
Source§impl Clone for LogicalDocument
impl Clone for LogicalDocument
Source§impl Debug for LogicalDocument
impl Debug for LogicalDocument
impl Eq for LogicalDocument
Source§impl PartialEq for LogicalDocument
impl PartialEq for LogicalDocument
impl StructuralPartialEq for LogicalDocument
Auto Trait Implementations§
impl Freeze for LogicalDocument
impl RefUnwindSafe for LogicalDocument
impl Send for LogicalDocument
impl Sync for LogicalDocument
impl Unpin for LogicalDocument
impl UnsafeUnpin for LogicalDocument
impl UnwindSafe for LogicalDocument
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