diff --git a/dev/src/uu_cp/cp.rs.html b/dev/src/uu_cp/cp.rs.html index 924f4cbd4..a1242362f 100644 --- a/dev/src/uu_cp/cp.rs.html +++ b/dev/src/uu_cp/cp.rs.html @@ -1985,6 +1985,14 @@ 1985 1986 1987 +1988 +1989 +1990 +1991 +1992 +1993 +1994 +1995
#![allow(clippy::missing_safety_doc)]
 #![allow(clippy::extra_unused_lifetimes)]
 
@@ -2030,7 +2038,8 @@
 };
 use uucore::update_control::{self, UpdateMode};
 use uucore::{
-    crash, format_usage, help_about, help_section, help_usage, prompt_yes, show_error, show_warning,
+    crash, format_usage, help_about, help_section, help_usage, prompt_yes, show_error,
+    show_warning, util_name,
 };
 
 use crate::copydir::copy_directory;
@@ -3089,24 +3098,22 @@
 }
 
 /// When handling errors, we don't always want to show them to the user. This function handles that.
-/// If the error is printed, returns true, false otherwise.
-fn show_error_if_needed(error: &Error) -> bool {
+fn show_error_if_needed(error: &Error) {
     match error {
         // When using --no-clobber, we don't want to show
         // an error message
-        Error::NotAllFilesCopied => (),
+        Error::NotAllFilesCopied => {
+            // Need to return an error code
+        }
         Error::Skipped => {
             // touch a b && echo "n"|cp -i a b && echo $?
             // should return an error from GNU 9.2
-            return true;
-        }
+        }
         _ => {
             show_error!("{}", error);
-            return true;
         }
     }
-    false
-}
+}
 
 /// Copy all `sources` to `target`.  Returns an
 /// `Err(Error::NotAllFilesCopied)` if at least one non-fatal error was
@@ -3162,9 +3169,8 @@
                     options,
                     &mut symlinked_files,
                 ) {
-                    if show_error_if_needed(&error) {
-                        non_fatal_errors = true;
-                    }
+                    show_error_if_needed(&error);
+                    non_fatal_errors = true;
                 }
             }
             seen_sources.insert(source);
@@ -3241,13 +3247,23 @@
 }
 
 impl OverwriteMode {
-    fn verify(&self, path: &Path) -> CopyResult<()> {
+    fn verify(&self, path: &Path, verbose: bool) -> CopyResult<()> {
         match *self {
-            Self::NoClobber => Err(Error::NotAllFilesCopied),
+            Self::NoClobber => {
+                if verbose {
+                    println!("skipped {}", path.quote());
+                } else {
+                    eprintln!("{}: not replacing {}", util_name(), path.quote());
+                }
+                Err(Error::NotAllFilesCopied)
+            }
             Self::Interactive(_) => {
                 if prompt_yes!("overwrite {}?", path.quote()) {
                     Ok(())
                 } else {
+                    if verbose {
+                        println!("skipped {}", path.quote());
+                    }
                     Err(Error::Skipped)
                 }
             }
@@ -3455,7 +3471,7 @@
         return Err(format!("{} and {} are the same file", source.quote(), dest.quote()).into());
     }
 
-    options.overwrite.verify(dest)?;
+    options.overwrite.verify(dest, options.verbose)?;
 
     let backup_path = backup_control::get_backup_path(options.backup, dest, &options.backup_suffix);
     if let Some(backup_path) = backup_path {
@@ -3813,7 +3829,7 @@
         File::create(dest).context(dest.display().to_string())?;
     } else if source_is_fifo && options.recursive && !options.copy_contents {
         #[cfg(unix)]
-        copy_fifo(dest, options.overwrite)?;
+        copy_fifo(dest, options.overwrite, options.verbose)?;
     } else if source_is_symlink {
         copy_link(source, dest, symlinked_files)?;
     } else {
@@ -3838,9 +3854,9 @@
 // "Copies" a FIFO by creating a new one. This workaround is because Rust's
 // built-in fs::copy does not handle FIFOs (see rust-lang/rust/issues/79390).
 #[cfg(unix)]
-fn copy_fifo(dest: &Path, overwrite: OverwriteMode) -> CopyResult<()> {
+fn copy_fifo(dest: &Path, overwrite: OverwriteMode, verbose: bool) -> CopyResult<()> {
     if dest.exists() {
-        overwrite.verify(dest)?;
+        overwrite.verify(dest, verbose)?;
         fs::remove_file(dest)?;
     }
 
diff --git a/dev/src/uu_more/more.rs.html b/dev/src/uu_more/more.rs.html
index d10077af8..ca50cfec6 100644
--- a/dev/src/uu_more/more.rs.html
+++ b/dev/src/uu_more/more.rs.html
@@ -625,6 +625,34 @@
 625
 626
 627
+628
+629
+630
+631
+632
+633
+634
+635
+636
+637
+638
+639
+640
+641
+642
+643
+644
+645
+646
+647
+648
+649
+650
+651
+652
+653
+654
+655
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * (c) Martin Kysel <code@martinkysel.com>
@@ -641,10 +669,10 @@
     time::Duration,
 };
 
-use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
+use clap::{crate_version, value_parser, Arg, ArgAction, ArgMatches, Command};
 use crossterm::event::KeyEventKind;
 use crossterm::{
-    cursor::MoveTo,
+    cursor::{MoveTo, MoveUp},
     event::{self, Event, KeyCode, KeyEvent, KeyModifiers},
     execute, queue,
     style::Attribute,
@@ -680,16 +708,28 @@
 const MULTI_FILE_TOP_PROMPT: &str = "::::::::::::::\n{}\n::::::::::::::\n";
 
 struct Options {
-    silent: bool,
     clean_print: bool,
+    lines: Option<u16>,
     print_over: bool,
+    silent: bool,
     squeeze: bool,
 }
 
 impl Options {
     fn from(matches: &ArgMatches) -> Self {
+        let lines = match (
+            matches.get_one::<u16>(options::LINES).copied(),
+            matches.get_one::<u16>(options::NUMBER).copied(),
+        ) {
+            // We add 1 to the number of lines to display because the last line
+            // is used for the banner
+            (Some(number), _) if number > 0 => Some(number + 1),
+            (None, Some(number)) if number > 0 => Some(number + 1),
+            (_, _) => None,
+        };
         Self {
             clean_print: matches.get_flag(options::CLEAN_PRINT),
+            lines,
             print_over: matches.get_flag(options::PRINT_OVER),
             silent: matches.get_flag(options::SILENT),
             squeeze: matches.get_flag(options::SQUEEZE),
@@ -794,6 +834,23 @@
                 .help("Squeeze multiple blank lines into one")
                 .action(ArgAction::SetTrue),
         )
+        .arg(
+            Arg::new(options::LINES)
+                .short('n')
+                .long(options::LINES)
+                .value_name("number")
+                .num_args(1)
+                .value_parser(value_parser!(u16).range(0..))
+                .help("The number of lines per screen full"),
+        )
+        .arg(
+            Arg::new(options::NUMBER)
+                .long(options::NUMBER)
+                .required(false)
+                .num_args(1)
+                .value_parser(value_parser!(u16).range(0..))
+                .help("Same as --lines"),
+        )
         // The commented arguments below are unimplemented:
         /*
         .arg(
@@ -814,22 +871,6 @@
                 .long(options::PLAIN)
                 .help("Suppress underlining and bold"),
         )
-        .arg(
-            Arg::new(options::LINES)
-                .short('n')
-                .long(options::LINES)
-                .value_name("number")
-                .takes_value(true)
-                .help("The number of lines per screen full"),
-        )
-        .arg(
-            Arg::new(options::NUMBER)
-                .allow_hyphen_values(true)
-                .long(options::NUMBER)
-                .required(false)
-                .takes_value(true)
-                .help("Same as --lines"),
-        )
         .arg(
             Arg::new(options::FROM_LINE)
                 .short('F')
@@ -890,7 +931,11 @@
     next_file: Option<&str>,
     options: &Options,
 ) -> UResult<()> {
-    let (cols, rows) = terminal::size().unwrap();
+    let (cols, mut rows) = terminal::size().unwrap();
+    if let Some(number) = options.lines {
+        rows = number;
+    }
+
     let lines = break_buff(buff, usize::from(cols));
 
     let mut pager = Pager::new(rows, lines, next_file, options);
@@ -954,6 +999,7 @@
                     ..
                 }) => {
                     pager.page_up();
+                    paging_add_back_message(options, stdout)?;
                 }
                 Event::Key(KeyEvent {
                     code: KeyCode::Char('j'),
@@ -974,7 +1020,7 @@
                     pager.prev_line();
                 }
                 Event::Resize(col, row) => {
-                    pager.page_resize(col, row);
+                    pager.page_resize(col, row, options.lines);
                 }
                 Event::Key(KeyEvent {
                     code: KeyCode::Char(k),
@@ -1074,8 +1120,10 @@
     }
 
     // TODO: Deal with column size changes.
-    fn page_resize(&mut self, _: u16, row: u16) {
-        self.content_rows = row.saturating_sub(1);
+    fn page_resize(&mut self, _: u16, row: u16, option_line: Option<u16>) {
+        if option_line.is_none() {
+            self.content_rows = row.saturating_sub(1);
+        };
     }
 
     fn draw(&mut self, stdout: &mut std::io::Stdout, wrong_key: Option<char>) {
@@ -1163,6 +1211,14 @@
     }
 }
 
+fn paging_add_back_message(options: &Options, stdout: &mut std::io::Stdout) -> UResult<()> {
+    if options.lines.is_some() {
+        execute!(stdout, MoveUp(1))?;
+        stdout.write_all("\n\r...back 1 page\n".as_bytes())?;
+    }
+    Ok(())
+}
+
 // Break the lines on the cols of the terminal
 fn break_buff(buff: &str, cols: usize) -> Vec<String> {
     let mut lines = Vec::with_capacity(buff.lines().count());
diff --git a/dev/uu_cp/enum.ClobberMode.html b/dev/uu_cp/enum.ClobberMode.html
index 4ca205af9..238f3a7e3 100644
--- a/dev/uu_cp/enum.ClobberMode.html
+++ b/dev/uu_cp/enum.ClobberMode.html
@@ -1,11 +1,11 @@
-ClobberMode in uu_cp - Rust

Enum uu_cp::ClobberMode

source ·
pub enum ClobberMode {
+ClobberMode in uu_cp - Rust

Enum uu_cp::ClobberMode

source ·
pub enum ClobberMode {
     Force,
     RemoveDestination,
     Standard,
 }
Expand description

Specifies whether when overwrite files

-

Variants§

§

Force

§

RemoveDestination

§

Standard

Trait Implementations§

source§

impl Clone for ClobberMode

source§

fn clone(&self) -> ClobberMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<ClobberMode> for ClobberMode

source§

fn eq(&self, other: &ClobberMode) -> bool

This method tests for self and other values to be equal, and is used +

Variants§

§

Force

§

RemoveDestination

§

Standard

Trait Implementations§

source§

impl Clone for ClobberMode

source§

fn clone(&self) -> ClobberMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<ClobberMode> for ClobberMode

source§

fn eq(&self, other: &ClobberMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for ClobberMode

source§

impl Eq for ClobberMode

source§

impl StructuralEq for ClobberMode

source§

impl StructuralPartialEq for ClobberMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for ClobberMode

source§

impl Eq for ClobberMode

source§

impl StructuralEq for ClobberMode

source§

impl StructuralPartialEq for ClobberMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_cp/enum.CopyMode.html b/dev/uu_cp/enum.CopyMode.html index 0fa66efaf..4811baae7 100644 --- a/dev/uu_cp/enum.CopyMode.html +++ b/dev/uu_cp/enum.CopyMode.html @@ -1,4 +1,4 @@ -CopyMode in uu_cp - Rust

Enum uu_cp::CopyMode

source ·
pub enum CopyMode {
+CopyMode in uu_cp - Rust

Enum uu_cp::CopyMode

source ·
pub enum CopyMode {
     Link,
     SymLink,
     Copy,
diff --git a/dev/uu_cp/enum.Error.html b/dev/uu_cp/enum.Error.html
index f2109c321..7a0490417 100644
--- a/dev/uu_cp/enum.Error.html
+++ b/dev/uu_cp/enum.Error.html
@@ -1,4 +1,4 @@
-Error in uu_cp - Rust

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<&'static str> for Error

source§

fn from(err: &'static str) -> Error

Converts to this type from the input type.
source§

impl<'a> From<Context<&'a str, Error>> for Error

source§

fn from($crate::Context: Context<&'a str, Error>) -> Error

Converts to this type from the input type.
source§

impl<'a> From<Context<String, Error>> for Error

source§

fn from($crate::Context: Context<String, Error>) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Error

Converts to this type from the input type.
source§

impl From<String> for Error

source§

fn from(err: String) -> Error

Converts to this type from the input type.
source§

impl From<StripPrefixError> for Error

source§

fn from(err: StripPrefixError) -> Error

Converts to this type from the input type.
source§

impl UError for Error

source§

fn code(&self) -> i32

Error code of a custom error. Read more
§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere +

§

NotADirectory(PathBuf)

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<&'static str> for Error

source§

fn from(err: &'static str) -> Error

Converts to this type from the input type.
source§

impl<'a> From<Context<&'a str, Error>> for Error

source§

fn from($crate::Context: Context<&'a str, Error>) -> Error

Converts to this type from the input type.
source§

impl<'a> From<Context<String, Error>> for Error

source§

fn from($crate::Context: Context<String, Error>) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Error

Converts to this type from the input type.
source§

impl From<String> for Error

source§

fn from(err: String) -> Error

Converts to this type from the input type.
source§

impl From<StripPrefixError> for Error

source§

fn from(err: StripPrefixError) -> Error

Converts to this type from the input type.
source§

impl UError for Error

source§

fn code(&self) -> i32

Error code of a custom error. Read more
§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Variants§

§

Clobber(ClobberMode)

Default Always overwrite existing files

§

Interactive(ClobberMode)

Prompt before overwriting a file

§

NoClobber

Never overwrite a file

-

Trait Implementations§

source§

impl Clone for OverwriteMode

source§

fn clone(&self) -> OverwriteMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<OverwriteMode> for OverwriteMode

source§

fn eq(&self, other: &OverwriteMode) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for OverwriteMode

source§

fn clone(&self) -> OverwriteMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<OverwriteMode> for OverwriteMode

source§

fn eq(&self, other: &OverwriteMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for OverwriteMode

source§

impl Eq for OverwriteMode

source§

impl StructuralEq for OverwriteMode

source§

impl StructuralPartialEq for OverwriteMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for OverwriteMode

source§

impl Eq for OverwriteMode

source§

impl StructuralEq for OverwriteMode

source§

impl StructuralPartialEq for OverwriteMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_cp/enum.Preserve.html b/dev/uu_cp/enum.Preserve.html index b12cdabb5..c577a8529 100644 --- a/dev/uu_cp/enum.Preserve.html +++ b/dev/uu_cp/enum.Preserve.html @@ -1,11 +1,11 @@ -Preserve in uu_cp - Rust

Enum uu_cp::Preserve

source ·
pub enum Preserve {
+Preserve in uu_cp - Rust

Enum uu_cp::Preserve

source ·
pub enum Preserve {
     No,
     Yes {
         required: bool,
     },
-}

Variants§

§

No

§

Yes

Fields

§required: bool

Trait Implementations§

source§

impl Debug for Preserve

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Preserve> for Preserve

source§

fn eq(&self, other: &Preserve) -> bool

This method tests for self and other values to be equal, and is used +}

Variants§

§

No

§

Yes

Fields

§required: bool

Trait Implementations§

source§

impl Debug for Preserve

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Preserve> for Preserve

source§

fn eq(&self, other: &Preserve) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for Preserve

source§

impl StructuralEq for Preserve

source§

impl StructuralPartialEq for Preserve

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Eq for Preserve

source§

impl StructuralEq for Preserve

source§

impl StructuralPartialEq for Preserve

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_cp/enum.ReflinkMode.html b/dev/uu_cp/enum.ReflinkMode.html index e2b5f45ef..bc34b39a0 100644 --- a/dev/uu_cp/enum.ReflinkMode.html +++ b/dev/uu_cp/enum.ReflinkMode.html @@ -1,11 +1,11 @@ -ReflinkMode in uu_cp - Rust

Enum uu_cp::ReflinkMode

source ·
pub enum ReflinkMode {
+ReflinkMode in uu_cp - Rust

Enum uu_cp::ReflinkMode

source ·
pub enum ReflinkMode {
     Always,
     Auto,
     Never,
 }
Expand description

Possible arguments for --reflink.

-

Variants§

§

Always

§

Auto

§

Never

Trait Implementations§

source§

impl Clone for ReflinkMode

source§

fn clone(&self) -> ReflinkMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<ReflinkMode> for ReflinkMode

source§

fn eq(&self, other: &ReflinkMode) -> bool

This method tests for self and other values to be equal, and is used +

Variants§

§

Always

§

Auto

§

Never

Trait Implementations§

source§

impl Clone for ReflinkMode

source§

fn clone(&self) -> ReflinkMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<ReflinkMode> for ReflinkMode

source§

fn eq(&self, other: &ReflinkMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for ReflinkMode

source§

impl Eq for ReflinkMode

source§

impl StructuralEq for ReflinkMode

source§

impl StructuralPartialEq for ReflinkMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for ReflinkMode

source§

impl Eq for ReflinkMode

source§

impl StructuralEq for ReflinkMode

source§

impl StructuralPartialEq for ReflinkMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_cp/enum.SparseMode.html b/dev/uu_cp/enum.SparseMode.html index 01579db98..73101b4e2 100644 --- a/dev/uu_cp/enum.SparseMode.html +++ b/dev/uu_cp/enum.SparseMode.html @@ -1,11 +1,11 @@ -SparseMode in uu_cp - Rust

Enum uu_cp::SparseMode

source ·
pub enum SparseMode {
+SparseMode in uu_cp - Rust

Enum uu_cp::SparseMode

source ·
pub enum SparseMode {
     Always,
     Auto,
     Never,
 }
Expand description

Possible arguments for --sparse.

-

Variants§

§

Always

§

Auto

§

Never

Trait Implementations§

source§

impl Clone for SparseMode

source§

fn clone(&self) -> SparseMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<SparseMode> for SparseMode

source§

fn eq(&self, other: &SparseMode) -> bool

This method tests for self and other values to be equal, and is used +

Variants§

§

Always

§

Auto

§

Never

Trait Implementations§

source§

impl Clone for SparseMode

source§

fn clone(&self) -> SparseMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<SparseMode> for SparseMode

source§

fn eq(&self, other: &SparseMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for SparseMode

source§

impl Eq for SparseMode

source§

impl StructuralEq for SparseMode

source§

impl StructuralPartialEq for SparseMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for SparseMode

source§

impl Eq for SparseMode

source§

impl StructuralEq for SparseMode

source§

impl StructuralPartialEq for SparseMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/dev/uu_cp/enum.TargetType.html b/dev/uu_cp/enum.TargetType.html index 5a7018910..53716f920 100644 --- a/dev/uu_cp/enum.TargetType.html +++ b/dev/uu_cp/enum.TargetType.html @@ -1,4 +1,4 @@ -TargetType in uu_cp - Rust

Enum uu_cp::TargetType

source ·
pub enum TargetType {
+TargetType in uu_cp - Rust

Enum uu_cp::TargetType

source ·
pub enum TargetType {
     Directory,
     File,
 }
Expand description

Specifies the expected file type of copy target

diff --git a/dev/uu_cp/fn.localize_to_target.html b/dev/uu_cp/fn.localize_to_target.html index e77603c62..e99381dac 100644 --- a/dev/uu_cp/fn.localize_to_target.html +++ b/dev/uu_cp/fn.localize_to_target.html @@ -1,4 +1,4 @@ -localize_to_target in uu_cp - Rust

Function uu_cp::localize_to_target

source ·
pub fn localize_to_target(
+localize_to_target in uu_cp - Rust

Function uu_cp::localize_to_target

source ·
pub fn localize_to_target(
     root: &Path,
     source: &Path,
     target: &Path
diff --git a/dev/uu_cp/fn.uu_app.html b/dev/uu_cp/fn.uu_app.html
index 4b5c726b9..02cd465e0 100644
--- a/dev/uu_cp/fn.uu_app.html
+++ b/dev/uu_cp/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_cp - Rust

Function uu_cp::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_cp - Rust

Function uu_cp::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_cp/fn.uumain.html b/dev/uu_cp/fn.uumain.html index 6e92ebcb0..7840aaada 100644 --- a/dev/uu_cp/fn.uumain.html +++ b/dev/uu_cp/fn.uumain.html @@ -1 +1 @@ -uumain in uu_cp - Rust

Function uu_cp::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file +uumain in uu_cp - Rust

Function uu_cp::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file diff --git a/dev/uu_cp/fn.verify_target_type.html b/dev/uu_cp/fn.verify_target_type.html index a400752e4..d2d7e9e17 100644 --- a/dev/uu_cp/fn.verify_target_type.html +++ b/dev/uu_cp/fn.verify_target_type.html @@ -1,4 +1,4 @@ -verify_target_type in uu_cp - Rust

Function uu_cp::verify_target_type

source ·
pub fn verify_target_type(
+verify_target_type in uu_cp - Rust

Function uu_cp::verify_target_type

source ·
pub fn verify_target_type(
     target: &Path,
     target_type: &TargetType
 ) -> CopyResult<()>
Expand description

Generate an error message if target is not the correct target_type

diff --git a/dev/uu_cp/index.html b/dev/uu_cp/index.html index 6e8586763..39b633783 100644 --- a/dev/uu_cp/index.html +++ b/dev/uu_cp/index.html @@ -1,2 +1,2 @@ -uu_cp - Rust

Crate uu_cp

source ·

Structs

Enums

Functions