Struct conch_parser::ast::builder::Newline [] [src]

pub struct Newline(pub Option<String>);

Represents a parsed newline, more specifically, the presense of a comment immediately preceeding the newline.

Since shell comments are usually treated as a newline, they can be present anywhere a newline can be as well. Thus if it is desired to retain comments they can be optionally attached to a parsed newline.

Trait Implementations

impl Debug for Newline
[src]

Formats the value using the given formatter.

impl PartialEq for Newline
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Newline
[src]

impl Clone for Newline
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more