pub struct PtxConfig {
pub width: usize,
pub ignore_case: bool,
pub auto_reference: bool,
pub traditional: bool,
pub format: OutputFormat,
pub ignore_words: HashSet<String>,
pub only_words: Option<HashSet<String>>,
pub references: bool,
pub gap_size: usize,
pub right_reference: bool,
pub sentence_regexp: Option<String>,
pub word_regexp: Option<String>,
}Expand description
Configuration for the ptx command.
Fields§
§width: usize§ignore_case: bool§auto_reference: bool§traditional: bool§format: OutputFormat§ignore_words: HashSet<String>§only_words: Option<HashSet<String>>§references: bool§gap_size: usize§right_reference: bool§sentence_regexp: Option<String>§word_regexp: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtxConfig
impl RefUnwindSafe for PtxConfig
impl Send for PtxConfig
impl Sync for PtxConfig
impl Unpin for PtxConfig
impl UnsafeUnpin for PtxConfig
impl UnwindSafe for PtxConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more