pub struct Item<'l> { /* private fields */ }Implementations§
Source§impl<'l> Item<'l>
impl<'l> Item<'l>
Sourcepub fn items_of(lines: &'l [Line]) -> Vec<Self>
pub fn items_of(lines: &'l [Line]) -> Vec<Self>
return a vector of slices of lines, each slice pointing to the
consecutive lines having the same item_idx
pub fn item_idx(&self) -> usize
pub fn lines(&self) -> &'l [Line]
pub fn location(&self) -> Option<&str>
pub fn diag_type(&self) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl<'l> Freeze for Item<'l>
impl<'l> RefUnwindSafe for Item<'l>
impl<'l> Send for Item<'l>
impl<'l> Sync for Item<'l>
impl<'l> Unpin for Item<'l>
impl<'l> UnwindSafe for Item<'l>
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