Struct rust_strings::FileConfig
source · [−]pub struct FileConfig<'a> {
pub file_path: &'a Path,
pub min_length: usize,
pub encodings: Vec<Encoding>,
pub buffer_size: usize,
}
Fields
file_path: &'a Path
min_length: usize
encodings: Vec<Encoding>
buffer_size: usize
Implementations
sourceimpl<'a> FileConfig<'a>
impl<'a> FileConfig<'a>
pub fn new(file_path: &'a Path) -> Self
pub fn with_buffer_size(self, buffer_size: usize) -> Self
pub fn with_min_length(self, min_length: usize) -> Self
pub fn with_encoding(self, encoding: Encoding) -> Self
pub fn with_encodings(self, encodings: Vec<Encoding>) -> Self
Trait Implementations
impl<'a> Config for FileConfig<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for FileConfig<'a>
impl<'a> Send for FileConfig<'a>
impl<'a> Sync for FileConfig<'a>
impl<'a> Unpin for FileConfig<'a>
impl<'a> UnwindSafe for FileConfig<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more