pub struct PivotByLineContext { /* private fields */ }
Expand description
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§
Trait Implementations§
Source§impl Context for PivotByLineContext
impl Context for PivotByLineContext
Source§fn get_current_text_mut(&mut self) -> Result<&mut String, ContextError>
fn get_current_text_mut(&mut self) -> Result<&mut String, ContextError>
Gets currently loaded cover text fragment mutably. Read more
Source§fn get_current_text(&self) -> Result<&String, ContextError>
fn get_current_text(&self) -> Result<&String, ContextError>
Gets currently loaded cover text fragment as read-only. Read more
Source§impl Encoder<PivotByLineContext> for ELUVMethod
impl Encoder<PivotByLineContext> for ELUVMethod
Source§fn partial_encode(
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>,
) -> Result<EncoderResult, Box<dyn Error>>
fn partial_encode( &self, context: &mut PivotByLineContext, data: &mut dyn Iterator<Item = Bit>, ) -> Result<EncoderResult, Box<dyn Error>>
fn encode( &self, context: &mut E, data: &mut dyn Iterator<Item = Bit>, progress_channel: Option<&Sender<ProgressStatus>>, ) -> Result<String, Box<dyn Error>>
Source§impl Encoder<PivotByLineContext> for ExtendedLineMethod
impl Encoder<PivotByLineContext> for ExtendedLineMethod
Source§fn partial_encode(
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>,
) -> Result<EncoderResult, Box<dyn Error>>
fn partial_encode( &self, context: &mut PivotByLineContext, data: &mut dyn Iterator<Item = Bit>, ) -> Result<EncoderResult, Box<dyn Error>>
fn encode( &self, context: &mut E, data: &mut dyn Iterator<Item = Bit>, progress_channel: Option<&Sender<ProgressStatus>>, ) -> Result<String, Box<dyn Error>>
Source§impl Encoder<PivotByLineContext> for LineExtendMethod
impl Encoder<PivotByLineContext> for LineExtendMethod
Source§fn partial_encode(
&self,
context: &mut PivotByLineContext,
data: &mut dyn Iterator<Item = Bit>,
) -> Result<EncoderResult, Box<dyn Error>>
fn partial_encode( &self, context: &mut PivotByLineContext, data: &mut dyn Iterator<Item = Bit>, ) -> Result<EncoderResult, Box<dyn Error>>
fn encode( &self, context: &mut E, data: &mut dyn Iterator<Item = Bit>, progress_channel: Option<&Sender<ProgressStatus>>, ) -> Result<String, Box<dyn Error>>
Source§impl Method<PivotByLineContext, PivotByRawLineContext> for ELUVMethod
impl Method<PivotByLineContext, PivotByRawLineContext> for ELUVMethod
fn method_name(&self) -> String
Source§impl Method<PivotByLineContext, PivotByRawLineContext> for ExtendedLineMethod
impl Method<PivotByLineContext, PivotByRawLineContext> for ExtendedLineMethod
fn method_name(&self) -> String
Source§impl Method<PivotByLineContext, PivotByRawLineContext> for LineExtendMethod
impl Method<PivotByLineContext, PivotByRawLineContext> for LineExtendMethod
fn method_name(&self) -> String
Auto Trait Implementations§
impl Freeze for PivotByLineContext
impl RefUnwindSafe for PivotByLineContext
impl Send for PivotByLineContext
impl Sync for PivotByLineContext
impl Unpin for PivotByLineContext
impl UnwindSafe for PivotByLineContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more