Struct arrow_parser::source::SourceRange
source · pub struct SourceRange { /* private fields */ }
Implementations§
source§impl SourceRange
impl SourceRange
pub fn new(start: usize, end: usize) -> SourceRange
pub fn start(&self) -> usize
pub fn end(&self) -> usize
pub fn at_start(&self) -> SourceRange
pub fn at_end(&self) -> SourceRange
pub fn error( self, typ: SyntaxErrorType, actual_token: Option<TokenType> ) -> SyntaxError
pub fn add_option(self, rhs: Option<SourceRange>) -> SourceRange
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn extend(&mut self, other: SourceRange)
Trait Implementations§
source§impl Add<SourceRange> for SourceRange
impl Add<SourceRange> for SourceRange
source§impl AddAssign<SourceRange> for SourceRange
impl AddAssign<SourceRange> for SourceRange
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl Clone for SourceRange
impl Clone for SourceRange
source§fn clone(&self) -> SourceRange
fn clone(&self) -> SourceRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more