pub struct Newline(pub Option<String>);
Expand description
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.
Tuple Fields§
§0: Option<String>
Trait Implementations§
impl Eq for Newline
impl StructuralPartialEq for Newline
Auto Trait Implementations§
impl Freeze for Newline
impl RefUnwindSafe for Newline
impl Send for Newline
impl Sync for Newline
impl Unpin for Newline
impl UnwindSafe for Newline
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