[−][src]Struct ptero::context::PivotByLineContext
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]
pub fn get_current_text_mut(&mut self) -> Result<&mut String, ContextError>[src]
pub fn get_current_text(&self) -> Result<&String, ContextError>[src]
pub fn load_text(&mut self) -> Result<&str, ContextError>[src]
impl Encoder<PivotByLineContext> for LineExtendMethod[src]
pub fn partial_encode(
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>
) -> Result<EncoderResult, Box<dyn Error>>[src]
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>
) -> Result<EncoderResult, Box<dyn Error>>
pub fn encode(
&self,
context: &mut E,
data: &mut dyn Iterator<Item = Bit>,
progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<String, Box<dyn Error>>[src]
&self,
context: &mut E,
data: &mut dyn Iterator<Item = Bit>,
progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<String, Box<dyn Error>>
impl Encoder<PivotByLineContext> for ELUVMethod[src]
pub fn partial_encode(
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>
) -> Result<EncoderResult, Box<dyn Error>>[src]
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>
) -> Result<EncoderResult, Box<dyn Error>>
pub fn encode(
&self,
context: &mut E,
data: &mut dyn Iterator<Item = Bit>,
progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<String, Box<dyn Error>>[src]
&self,
context: &mut E,
data: &mut dyn Iterator<Item = Bit>,
progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<String, Box<dyn Error>>
impl Encoder<PivotByLineContext> for ExtendedLineMethod[src]
pub fn partial_encode(
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>
) -> Result<EncoderResult, Box<dyn Error>>[src]
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>
) -> Result<EncoderResult, Box<dyn Error>>
pub fn encode(
&self,
context: &mut E,
data: &mut dyn Iterator<Item = Bit>,
progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<String, Box<dyn Error>>[src]
&self,
context: &mut E,
data: &mut dyn Iterator<Item = Bit>,
progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<String, Box<dyn Error>>
impl Method<PivotByLineContext, PivotByRawLineContext> for LineExtendMethod[src]
impl Method<PivotByLineContext, PivotByRawLineContext> for ELUVMethod[src]
impl Method<PivotByLineContext, PivotByRawLineContext> for ExtendedLineMethod[src]
Auto Trait Implementations
impl RefUnwindSafe for PivotByLineContext[src]
impl Send for PivotByLineContext[src]
impl Sync for PivotByLineContext[src]
impl Unpin for PivotByLineContext[src]
impl UnwindSafe for PivotByLineContext[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,