pub struct ResolvedSymbol { /* private fields */ }
Implementations§
Source§impl ResolvedSymbol
impl ResolvedSymbol
pub fn new( lines: Vec<Rc<String>>, lineno: usize, start: usize, end: usize, ) -> Self
pub fn is_multiline(&self) -> bool
pub fn line_count(&self) -> usize
pub fn lineno(&self) -> usize
pub fn start(&self) -> usize
pub fn end(&self) -> usize
pub fn start_col(&self) -> usize
pub fn end_col(&self) -> usize
pub fn iter_whole_lines(&self) -> impl Iterator<Item = &str>
pub fn iter_lines(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Source§impl Clone for ResolvedSymbol
impl Clone for ResolvedSymbol
Source§fn clone(&self) -> ResolvedSymbol
fn clone(&self) -> ResolvedSymbol
Returns a duplicate 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 moreSource§impl Debug for ResolvedSymbol
impl Debug for ResolvedSymbol
Auto Trait Implementations§
impl Freeze for ResolvedSymbol
impl RefUnwindSafe for ResolvedSymbol
impl !Send for ResolvedSymbol
impl !Sync for ResolvedSymbol
impl Unpin for ResolvedSymbol
impl UnwindSafe for ResolvedSymbol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more