[−][src]Struct line_diff::Config
Configuration struct for comparing two lines
Methods
impl Config[src]
pub fn from_cmd_args() -> Config[src]
Create a config struct by using command line arguments
pub fn from_lines(
sort: bool,
lowercase: bool,
separators: Vec<char>,
l1: &str,
l2: &str
) -> Config[src]
sort: bool,
lowercase: bool,
separators: Vec<char>,
l1: &str,
l2: &str
) -> Config
Create a Config struct that can be used to compare two lines that are given as &str
sortWhether or not to sort chunks before comparinglowercaseWhether or not to convert chunks to lowercase before comparingseparatorsList of separators to use for splitting lines into chunksl1The first linel2The second line
pub fn from_file(
sort: bool,
lowercase: bool,
separators: Vec<char>,
filepath: PathBuf
) -> Config[src]
sort: bool,
lowercase: bool,
separators: Vec<char>,
filepath: PathBuf
) -> Config
Create a Config struct that can be used to compare two lines that are stored in a single file
sortWhether or not to sort chunks before comparinglowercaseWhether or not to convert chunks to lowercase before comparingseparatorsList of separators to use for splitting lines into chunksfilepathPath to the file that contains the two lines
Trait Implementations
impl Debug for Config[src]
impl StructOpt for Config[src]
fn clap<'a, 'b>() -> App<'a, 'b>[src]
fn from_clap(matches: &ArgMatches) -> Self[src]
fn from_args() -> Self[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for Config[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>[src]
fn is_subcommand() -> bool[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,