[−][src]Struct line_diff::Config
Configuration struct for comparing two lines
Implementations
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
sort
Whether or not to sort chunks before comparinglowercase
Whether or not to convert chunks to lowercase before comparingseparators
List of separators to use for splitting lines into chunksl1
The first linel2
The 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
sort
Whether or not to sort chunks before comparinglowercase
Whether or not to convert chunks to lowercase before comparingseparators
List of separators to use for splitting lines into chunksfilepath
Path to the file that contains the two lines
Trait Implementations
impl Debug for Config
[src]
impl StructOpt for Config
[src]
pub fn clap<'a, 'b>() -> App<'a, 'b>
[src]
pub fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
pub fn from_args() -> Self
[src]
pub 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,
pub 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]
pub fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
pub fn is_subcommand() -> bool
[src]
pub fn from_subcommand(
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
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,
pub 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.
pub 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>,