Struct lib_ruby_parser::source::SourceLine [−][src]
Expand description
Representation of a source line in a source file
Fields
start: usize
Start of the line (in bytes)
end: usize
End of the line (in bytes)
ends_with_eof: bool
true
if line ends with EOF char (which is true for the last line in the file)
Implementations
Returns true of line ends with EOF
Sets whether line ends with EOF
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SourceLine
impl Send for SourceLine
impl Sync for SourceLine
impl Unpin for SourceLine
impl UnwindSafe for SourceLine
Blanket Implementations
Mutably borrows from an owned value. Read more