pub struct PipeConfig {
pub strip: bool,
pub prefer_less: bool,
}Expand description
Controls how tokf handles piped commands during rewriting.
Fields§
§strip: boolWhether to strip simple pipes (tail/head/grep) when a filter matches. Default: true (current behaviour).
prefer_less: boolWhen true and a pipe is stripped, inject --prefer-less so that at
runtime tokf compares filtered vs piped output and uses whichever is
smaller.
Trait Implementations§
Source§impl Clone for PipeConfig
impl Clone for PipeConfig
Source§fn clone(&self) -> PipeConfig
fn clone(&self) -> PipeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PipeConfig
impl Debug for PipeConfig
Source§impl<'de> Deserialize<'de> for PipeConfig
impl<'de> Deserialize<'de> for PipeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PipeConfig
impl RefUnwindSafe for PipeConfig
impl Send for PipeConfig
impl Sync for PipeConfig
impl Unpin for PipeConfig
impl UnsafeUnpin for PipeConfig
impl UnwindSafe for PipeConfig
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