Skip to main content

TextAction

Trait TextAction 

Source
pub trait TextAction {
    // Required method
    fn transform(
        &mut self,
        input: &str,
        output: &mut [u8],
    ) -> Result<u64, Error>;
}
Expand description

Transform a selected string or the currently visible terminal text.

Required Methods§

Source

fn transform(&mut self, input: &str, output: &mut [u8]) -> Result<u64, Error>

Write the result into output and return its byte length. Return BufferTooSmall without exceeding the supplied buffer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§