Trait lib_ruby_parser::source::SourceLineTrait [−][src]
pub trait SourceLineTrait: Debug + Clone + Default + PartialEq + Eq { fn new(start: usize, end: usize, ends_with_eof: bool) -> Self
where
Self: Sized; fn start(&self) -> usize; fn set_start(&mut self, start: usize); fn end(&self) -> usize; fn set_end(&mut self, end: usize); fn ends_with_eof(&self) -> bool; fn set_ends_with_eof(&mut self, ends_with_eof: bool); fn len(&self) -> usize { ... } fn line_end(&self) -> usize { ... } }
Expand description
Trait with common methods of SourceLine (Rust- or external-based)
Required methods
Constructs a SourceLine
fn ends_with_eof(&self) -> bool
[src]
fn ends_with_eof(&self) -> bool
[src]Returns true of line ends with EOF
fn set_ends_with_eof(&mut self, ends_with_eof: bool)
[src]
fn set_ends_with_eof(&mut self, ends_with_eof: bool)
[src]Sets whether line ends with EOF