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

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


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


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(
    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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,