Struct kconfig_linux::parser::utils::parse_span::ParseSpan
source · [−]pub struct ParseSpan<'a, 's, 'f> { /* private fields */ }
Implementations
sourceimpl<'a, 's, 'f> ParseSpan<'a, 's, 'f>
impl<'a, 's, 'f> ParseSpan<'a, 's, 'f>
pub fn from_source(source_span: &'a [&'s str], filename: &'f str) -> Self
pub fn non_empty_or(&self) -> Result<(), ParserError>
pub fn len(&self) -> usize
pub fn get_with_start_at(&self, at: usize) -> Self
pub fn get_with_end_at(&self, at: usize) -> Self
pub fn get_with_bounds(&self, from: usize, to: usize) -> Self
pub fn get_source_span(&self) -> &'a [&'s str]
pub fn get_filename(&self) -> &'f str
pub fn get_global_span(&self) -> (usize, usize)
pub fn get_line_span_at(&self, offset: usize) -> LineSpan<'s, 'f>
Auto Trait Implementations
impl<'a, 's, 'f> RefUnwindSafe for ParseSpan<'a, 's, 'f>
impl<'a, 's, 'f> Send for ParseSpan<'a, 's, 'f>
impl<'a, 's, 'f> Sync for ParseSpan<'a, 's, 'f>
impl<'a, 's, 'f> Unpin for ParseSpan<'a, 's, 'f> where
's: 'a,
impl<'a, 's, 'f> UnwindSafe for ParseSpan<'a, 's, 'f>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more