pub struct Listing {
pub indirect_errors: Arc<Vec<Error>>,
pub direct_errors: Arc<Vec<Error>>,
/* private fields */
}
Fields§
§indirect_errors: Arc<Vec<Error>>
§direct_errors: Arc<Vec<Error>>
Implementations§
Source§impl Listing
impl Listing
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn insert(&mut self, line: Line) -> Option<Line>
pub fn remove(&mut self, ln: LineNumber) -> Option<Line>
pub fn remove_range(&mut self, range: RangeInclusive<LineNumber>) -> bool
pub fn line(&self, num: usize) -> Option<(String, Vec<Range<usize>>)>
pub fn lines(&self) -> Values<'_, LineNumber, Line>
Sourcepub fn load_str(&mut self, line: &str) -> Result<(), Error>
pub fn load_str(&mut self, line: &str) -> Result<(), Error>
Used for loading a new Listing from a file.
pub fn list_line( &self, range: &mut RangeInclusive<LineNumber>, ) -> Option<(String, Vec<Range<usize>>)>
pub fn renum( &mut self, new_start: u16, old_start: u16, step: u16, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Listing
impl RefUnwindSafe for Listing
impl Send for Listing
impl Sync for Listing
impl Unpin for Listing
impl UnwindSafe for Listing
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