[][src]Struct nvimpam_lib::lines::Lines

pub struct Lines<'a>(_);

The struct to hold the lines.

Methods

impl<'a> Lines<'a>
[src]

Returns the number of lines

Check if there are any lines

Create a new Lines struct from a Vec<String>

Creates a new Lines struct from a slice of &'strs

Create a new Lines struct from a byte slice by splitting on newlines.

Read a file into a Vec<u8>. For usage with from_slice.

Update Lines:

  • first and last are zero-indexed (just as Lines itself)
  • last is the first line that has not been updated This are the exact conditions to use the range first..last together with splice on a Vec.

Important traits for LinesIter<'a, I>

Return an Iterator over the lines of a file.

Trait Implementations

impl<'a> Default for Lines<'a>
[src]

Returns the "default value" for a type. Read more

impl<'a> From<Vec<String>> for Lines<'a>
[src]

Performs the conversion.

impl<'a> Deref for Lines<'a>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a> Display for Lines<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Debug for Lines<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Lines<'a>

impl<'a> Sync for Lines<'a>

Blanket Implementations

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

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more