[][src]Struct basic::mach::Listing

pub struct Listing {
    pub indirect_errors: Arc<Vec<Error>>,
    pub direct_errors: Arc<Vec<Error>>,
    // some fields omitted
}

Fields

indirect_errors: Arc<Vec<Error>>direct_errors: Arc<Vec<Error>>

Methods

impl Listing[src]

pub fn clear(&mut self)[src]

pub fn is_empty(&self) -> bool[src]

pub fn insert(&mut self, line: Line) -> Option<Line>[src]

pub fn remove(&mut self, ln: LineNumber) -> Option<Line>[src]

pub fn remove_range(&mut self, range: RangeInclusive<LineNumber>) -> bool[src]

pub fn line(&self, num: usize) -> Option<(String, Vec<Range<usize>>)>[src]

pub fn lines(&self) -> Values<LineNumber, Line>[src]

pub fn load_str(&mut self, line: &str) -> Result<(), Error>[src]

Used for loading a new Listing from a file.

pub fn list_line(
    &self,
    range: &mut RangeInclusive<LineNumber>
) -> Option<(String, Vec<Range<usize>>)>
[src]

pub fn renum(
    &mut self,
    new_start: u16,
    old_start: u16,
    step: u16
) -> Result<(), Error>
[src]

Trait Implementations

impl Clone for Listing[src]

impl Debug for Listing[src]

impl Default for Listing[src]

Auto Trait Implementations

impl RefUnwindSafe for Listing

impl Send for Listing

impl Sync for Listing

impl Unpin for Listing

impl UnwindSafe for Listing

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,