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]
impl PartialEq for Newline[src]
fn eq(&self, __arg_0: &Newline) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Newline) -> bool
This method tests for !=.
impl Eq for Newline[src]
impl Clone for Newline[src]
fn clone(&self) -> Newline
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more