[][src]Struct ripgrep_all::adapters::AdaptInfo

pub struct AdaptInfo<'a> {
    pub filepath_hint: &'a Path,
    pub is_real_file: bool,
    pub archive_recursion_depth: i32,
    pub inp: &'a mut dyn Read,
    pub oup: &'a mut (dyn Write + Send),
    pub line_prefix: &'a str,
    pub config: PreprocConfig<'a>,
}

Fields

filepath_hint: &'a Path

file path. May not be an actual file on the file system (e.g. in an archive). Used for matching file extensions.

is_real_file: bool

true if filepath_hint is an actual file on the file system

archive_recursion_depth: i32

depth at which this file is in archives. 0 for real filesystem

inp: &'a mut dyn Read

stream to read the file from. can be from a file or from some decoder

oup: &'a mut (dyn Write + Send)

stream to write to. will be written to from a different thread

line_prefix: &'a str

prefix every output line with this string to better indicate the file's location if it is in some archive

config: PreprocConfig<'a>

Auto Trait Implementations

impl<'a> !Send for AdaptInfo<'a>

impl<'a> !Sync for AdaptInfo<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]