Struct lib_ruby_parser::Loc [−][src]
Fields
begin: usize
end: usize
Implementations
impl Loc
[src][−]
pub fn new(begin: usize, end: usize) -> Self
[src]
pub fn validate(&self, input: &Input)
[src]
pub fn begin(&self) -> Self
[src]
pub fn end(&self) -> Self
[src]
pub fn size(&self) -> usize
[src]
pub fn with_begin(&self, begin: usize) -> Self
[src]
pub fn with_end(&self, end: usize) -> Self
[src]
pub fn with(&self, begin: usize, end: usize) -> Self
[src]
pub fn adjust_begin(&self, d: i32) -> Self
[src]
pub fn adjust_end(&self, d: i32) -> Self
[src]
pub fn resize(&self, new_size: usize) -> Self
[src]
pub fn join(&self, other: &Self) -> Self
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn begin_line_col(&self, input: &Input) -> Option<(usize, usize)>
[src]
pub fn end_line_col(&self, input: &Input) -> Option<(usize, usize)>
[src]
pub fn expand_to_line(&self, input: &Input) -> Option<(usize, Self)>
[src]
pub fn source(&self, input: &Input) -> Option<String>
[src]
impl Loc
[src][−]
Trait Implementations
impl Clone for Loc
[src][+]
impl Debug for Loc
[src][+]
impl Default for Loc
[src][+]
impl PartialEq<Loc> for Loc
[src][+]
impl StructuralPartialEq for Loc
[src]
Auto Trait Implementations
impl RefUnwindSafe for Loc
[src]
impl Send for Loc
[src]
impl Sync for Loc
[src]
impl Unpin for Loc
[src]
impl UnwindSafe for Loc
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,