[][src]Struct ptero::context::PivotByLineContext

pub struct PivotByLineContext { /* fields omitted */ }

Context used by methods requiring pivot. Loads cover text line by line, uses pivot and does not preserve original whitespace. It also exposes the word iterator for purpose of peeking and/or traversing.

Implementations

impl PivotByLineContext[src]

pub fn new(cover_text: &str, pivot: usize) -> Self[src]

pub fn get_pivot(&self) -> usize[src]

pub fn peek_word(&mut self) -> Option<String>[src]

pub fn next_word(&mut self) -> Option<String>[src]

Trait Implementations

impl Context for PivotByLineContext[src]

impl Encoder<PivotByLineContext> for LineExtendMethod[src]

impl Encoder<PivotByLineContext> for ELUVMethod[src]

impl Encoder<PivotByLineContext> for ExtendedLineMethod[src]

impl Method<PivotByLineContext, PivotByRawLineContext> for LineExtendMethod[src]

impl Method<PivotByLineContext, PivotByRawLineContext> for ELUVMethod[src]

impl Method<PivotByLineContext, PivotByRawLineContext> for ExtendedLineMethod[src]

Auto Trait Implementations

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