From 92852d4a7a60e405b018a003d70b9ed9dab292b4 Mon Sep 17 00:00:00 2001 From: sylvestre Date: Mon, 26 Jun 2023 03:08:19 +0000 Subject: [PATCH] deploy: f0e8d44e6e64ee3354f95864c0a25b74cf1c1151 --- dev/src/uu_sort/chunks.rs.html | 32 ++++++++++--------- dev/src/uu_sort/ext_sort.rs.html | 2 +- dev/src/uu_sort/merge.rs.html | 2 +- dev/src/uucore/mods/error.rs.html | 20 +----------- dev/uucore/error/fn.strip_errno.html | 2 +- dev/uucore/error/index.html | 2 +- dev/uucore/error/macro.uio_error.html | 2 +- dev/uucore/error/struct.ClapErrorWrapper.html | 4 +-- dev/uucore/error/struct.ExitCode.html | 4 +-- dev/uucore/error/struct.UIoError.html | 2 +- dev/uucore/error/trait.FromIo.html | 6 ++-- dev/uucore/error/trait.UClapError.html | 4 +-- dev/uucore/error/trait.UError.html | 4 +-- dev/uucore/macro.uio_error.html | 2 +- dev/uucore/pipes/type.Error.html | 2 +- 15 files changed, 37 insertions(+), 53 deletions(-) diff --git a/dev/src/uu_sort/chunks.rs.html b/dev/src/uu_sort/chunks.rs.html index 040564a81..08df60277 100644 --- a/dev/src/uu_sort/chunks.rs.html +++ b/dev/src/uu_sort/chunks.rs.html @@ -319,6 +319,7 @@ 319 320 321 +322
//  * This file is part of the uutils coreutils package.
 //  *
 //  * (c) Michael Debertol <michael.debertol..AT..gmail.com>
@@ -337,21 +338,22 @@
 };
 
 use memchr::memchr_iter;
-use ouroboros::self_referencing;
+use self_cell::self_cell;
 use uucore::error::{UResult, USimpleError};
 
 use crate::{numeric_str_cmp::NumInfo, GeneralF64ParseResult, GlobalSettings, Line, SortError};
 
-/// The chunk that is passed around between threads.
-/// `lines` consist of slices into `buffer`.
-#[self_referencing(pub_extras)]
-#[derive(Debug)]
-pub struct Chunk {
-    pub buffer: Vec<u8>,
-    #[borrows(buffer)]
-    #[covariant]
-    pub contents: ChunkContents<'this>,
-}
+self_cell!(
+    /// The chunk that is passed around between threads.
+    pub struct Chunk {
+        owner: Vec<u8>,
+
+        #[covariant]
+        dependent: ChunkContents,
+    }
+
+    impl {Debug}
+);
 
 #[derive(Debug)]
 pub struct ChunkContents<'a> {
@@ -369,7 +371,7 @@
 impl Chunk {
     /// Destroy this chunk and return its components to be reused.
     pub fn recycle(mut self) -> RecycledChunk {
-        let recycled_contents = self.with_contents_mut(|contents| {
+        let recycled_contents = self.with_dependent_mut(|_, contents| {
             contents.lines.clear();
             contents.line_data.selections.clear();
             contents.line_data.num_infos.clear();
@@ -402,15 +404,15 @@
             selections: recycled_contents.1,
             num_infos: recycled_contents.2,
             parsed_floats: recycled_contents.3,
-            buffer: self.into_heads().buffer,
+            buffer: self.into_owner(),
         }
     }
 
     pub fn lines(&self) -> &Vec<Line> {
-        &self.borrow_contents().lines
+        &self.borrow_dependent().lines
     }
     pub fn line_data(&self) -> &LineData {
-        &self.borrow_contents().line_data
+        &self.borrow_dependent().line_data
     }
 }
 
diff --git a/dev/src/uu_sort/ext_sort.rs.html b/dev/src/uu_sort/ext_sort.rs.html
index 766139d73..68306eba1 100644
--- a/dev/src/uu_sort/ext_sort.rs.html
+++ b/dev/src/uu_sort/ext_sort.rs.html
@@ -444,7 +444,7 @@
 /// The function that is executed on the sorter thread.
 fn sorter(receiver: &Receiver<Chunk>, sender: &SyncSender<Chunk>, settings: &GlobalSettings) {
     while let Ok(mut payload) = receiver.recv() {
-        payload.with_contents_mut(|contents| {
+        payload.with_dependent_mut(|_, contents| {
             sort_by(&mut contents.lines, settings, &contents.line_data);
         });
         if sender.send(payload).is_err() {
diff --git a/dev/src/uu_sort/merge.rs.html b/dev/src/uu_sort/merge.rs.html
index 200f4ce07..3443b4910 100644
--- a/dev/src/uu_sort/merge.rs.html
+++ b/dev/src/uu_sort/merge.rs.html
@@ -843,7 +843,7 @@
                 file_number: file.file_number,
             });
 
-            file.current_chunk.with_contents(|contents| {
+            file.current_chunk.with_dependent(|_, contents| {
                 let current_line = &contents.lines[file.line_idx];
                 if settings.unique {
                     if let Some(prev) = &prev {
diff --git a/dev/src/uucore/mods/error.rs.html b/dev/src/uucore/mods/error.rs.html
index c5008a6e9..a69d0586f 100644
--- a/dev/src/uucore/mods/error.rs.html
+++ b/dev/src/uucore/mods/error.rs.html
@@ -765,15 +765,6 @@
 765
 766
 767
-768
-769
-770
-771
-772
-773
-774
-775
-776
 
// TODO fix broken links
 #![allow(rustdoc::broken_intra_doc_links)]
 //! All utils return exit with an exit code. Usually, the following scheme is used:
@@ -1172,7 +1163,7 @@
     fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), std::fmt::Error> {
         use std::io::ErrorKind::*;
 
-        let mut message;
+        let message;
         let message = if self.inner.raw_os_error().is_some() {
             // These are errors that come directly from the OS.
             // We want to normalize their messages across systems,
@@ -1200,7 +1191,6 @@
                     // (https://github.com/rust-lang/rust/issues/86442)
                     // are stabilized, we should add them to the match statement.
                     message = strip_errno(&self.inner);
-                    capitalize(&mut message);
                     &message
                 }
             }
@@ -1211,7 +1201,6 @@
             // a file that was not found.
             // There are also errors with entirely custom messages.
             message = self.inner.to_string();
-            capitalize(&mut message);
             &message
         };
         if let Some(ctx) = &self.context {
@@ -1222,13 +1211,6 @@
     }
 }
 
-/// Capitalize the first character of an ASCII string.
-fn capitalize(text: &mut str) {
-    if let Some(first) = text.get_mut(..1) {
-        first.make_ascii_uppercase();
-    }
-}
-
 /// Strip the trailing " (os error XX)" from io error strings.
 pub fn strip_errno(err: &std::io::Error) -> String {
     let mut msg = err.to_string();
diff --git a/dev/uucore/error/fn.strip_errno.html b/dev/uucore/error/fn.strip_errno.html
index 7c58fc67c..9463b535b 100644
--- a/dev/uucore/error/fn.strip_errno.html
+++ b/dev/uucore/error/fn.strip_errno.html
@@ -1,2 +1,2 @@
-strip_errno in uucore::error - Rust

Function uucore::error::strip_errno

source ·
pub fn strip_errno(err: &Error) -> String
Expand description

Strip the trailing “ (os error XX)“ from io error strings.

+strip_errno in uucore::error - Rust

Function uucore::error::strip_errno

source ·
pub fn strip_errno(err: &Error) -> String
Expand description

Strip the trailing “ (os error XX)“ from io error strings.

\ No newline at end of file diff --git a/dev/uucore/error/index.html b/dev/uucore/error/index.html index c0ee143a4..bca10afbb 100644 --- a/dev/uucore/error/index.html +++ b/dev/uucore/error/index.html @@ -1,4 +1,4 @@ -uucore::error - Rust

Module uucore::error

source ·
Expand description

All utils return exit with an exit code. Usually, the following scheme is used:

+uucore::error - Rust

Module uucore::error

source ·
Expand description

All utils return exit with an exit code. Usually, the following scheme is used:

Trait Implementations§

source§

impl Debug for ClapErrorWrapper

source§

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

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

impl Display for ClapErrorWrapper

source§

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

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

impl Error for ClapErrorWrapper

1.30.0 · 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 UClapError<ClapErrorWrapper> for Error

source§

impl UError for ClapErrorWrapper

source§

fn code(&self) -> i32

Error code of a custom error. Read more
source§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Debug for ClapErrorWrapper

source§

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

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

impl Display for ClapErrorWrapper

source§

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

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

impl Error for ClapErrorWrapper

1.30.0 · 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 UClapError<ClapErrorWrapper> for Error

source§

impl UError for ClapErrorWrapper

source§

fn code(&self) -> i32

Error code of a custom error. Read more
source§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

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/uucore/error/struct.ExitCode.html b/dev/uucore/error/struct.ExitCode.html index 26dd78923..46f5acc93 100644 --- a/dev/uucore/error/struct.ExitCode.html +++ b/dev/uucore/error/struct.ExitCode.html @@ -1,4 +1,4 @@ -ExitCode in uucore::error - Rust

Struct uucore::error::ExitCode

source ·
pub struct ExitCode(pub i32);
Expand description

A special error type that does not print any message when returned from +ExitCode in uucore::error - Rust

Struct uucore::error::ExitCode

source ·
pub struct ExitCode(pub i32);
Expand description

A special error type that does not print any message when returned from uumain. Especially useful for porting utilities to using UResult.

There are two ways to construct an ExitCode:

@@ -10,7 +10,7 @@ let res: UResult<()> = Err(1.into());

This type is especially useful for a trivial conversion from utils returning i32 to returning UResult.

-

Tuple Fields§

§0: i32

Implementations§

source§

impl ExitCode

source

pub fn new(code: i32) -> Box<dyn UError>

Trait Implementations§

source§

impl Debug for ExitCode

source§

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

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

impl Display for ExitCode

source§

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

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

impl Error for ExitCode

1.30.0 · 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 UError for ExitCode

source§

fn code(&self) -> i32

Error code of a custom error. Read more
source§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Tuple Fields§

§0: i32

Implementations§

source§

impl ExitCode

source

pub fn new(code: i32) -> Box<dyn UError>

Trait Implementations§

source§

impl Debug for ExitCode

source§

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

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

impl Display for ExitCode

source§

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

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

impl Error for ExitCode

1.30.0 · 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 UError for ExitCode

source§

fn code(&self) -> i32

Error code of a custom error. Read more
source§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

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/uucore/error/struct.UIoError.html b/dev/uucore/error/struct.UIoError.html index 44b8cb414..6fedbc9df 100644 --- a/dev/uucore/error/struct.UIoError.html +++ b/dev/uucore/error/struct.UIoError.html @@ -21,7 +21,7 @@ coreutils.

// Converting from an `std::io::Error`. let res: UResult<File> = File::open(path).map_err_context(|| format!("cannot access {}", path.quote()));
-

Implementations§

source§

impl UIoError

source

pub fn new<S: Into<String>>(kind: ErrorKind, context: S) -> Box<dyn UError>

Trait Implementations§

source§

impl Debug for UIoError

source§

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

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

impl Display for UIoError

source§

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

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

impl Error for UIoError

1.30.0 · 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<Errno> for UIoError

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for UIoError

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl UError for UIoError

source§

fn code(&self) -> i32

Error code of a custom error. Read more
source§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Implementations§

source§

impl UIoError

source

pub fn new<S: Into<String>>(kind: ErrorKind, context: S) -> Box<dyn UError>

Trait Implementations§

source§

impl Debug for UIoError

source§

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

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

impl Display for UIoError

source§

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

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

impl Error for UIoError

1.30.0 · 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<Errno> for UIoError

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for UIoError

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl UError for UIoError

source§

fn code(&self) -> i32

Error code of a custom error. Read more
source§

fn usage(&self) -> bool

Print usage help to a custom error. Read more

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/uucore/error/trait.FromIo.html b/dev/uucore/error/trait.FromIo.html index 0d1b3249a..93eab65a4 100644 --- a/dev/uucore/error/trait.FromIo.html +++ b/dev/uucore/error/trait.FromIo.html @@ -1,9 +1,9 @@ -FromIo in uucore::error - Rust

Trait uucore::error::FromIo

source ·
pub trait FromIo<T> {
+FromIo in uucore::error - Rust

Trait uucore::error::FromIo

source ·
pub trait FromIo<T> {
     // Required method
     fn map_err_context(self, context: impl FnOnce() -> String) -> T;
 }
Expand description

Enables the conversion from std::io::Error to UError and from std::io::Result to UResult.

-

Required Methods§

source

fn map_err_context(self, context: impl FnOnce() -> String) -> T

Implementations on Foreign Types§

source§

impl FromIo<Box<UIoError, Global>> for ErrorKind

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> Box<UIoError>

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Result<T>

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Result<T, Error>

Enables the conversion from Result<T, nix::Error> to UResult<T>.

+

Required Methods§

source

fn map_err_context(self, context: impl FnOnce() -> String) -> T

Implementations on Foreign Types§

source§

impl FromIo<Box<UIoError, Global>> for ErrorKind

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> Box<UIoError>

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Result<T>

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Result<T, Error>

Enables the conversion from Result<T, nix::Error> to UResult<T>.

Examples

use uucore::error::FromIo;
 use nix::errno::Errno;
@@ -13,4 +13,4 @@
 
 // prints "fix me please!: Permission denied"
 println!("{}", uio_result.unwrap_err());
-
source§

fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>

source§

impl FromIo<Box<UIoError, Global>> for Error

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> Box<UIoError>

Implementors§

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for uucore::pipes::Error

\ No newline at end of file +
source§

fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>

source§

impl FromIo<Box<UIoError, Global>> for Error

source§

fn map_err_context(self, context: impl FnOnce() -> String) -> Box<UIoError>

Implementors§

source§

impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for uucore::pipes::Error

\ No newline at end of file diff --git a/dev/uucore/error/trait.UClapError.html b/dev/uucore/error/trait.UClapError.html index ab91faa2a..4ce074bd3 100644 --- a/dev/uucore/error/trait.UClapError.html +++ b/dev/uucore/error/trait.UClapError.html @@ -1,5 +1,5 @@ -UClapError in uucore::error - Rust

Trait uucore::error::UClapError

source ·
pub trait UClapError<T> {
+UClapError in uucore::error - Rust

Trait uucore::error::UClapError

source ·
pub trait UClapError<T> {
     // Required method
     fn with_exit_code(self, code: i32) -> T;
 }
Expand description

Extension trait for clap::Error to adjust the exit code.

-

Required Methods§

source

fn with_exit_code(self, code: i32) -> T

Implementations on Foreign Types§

source§

impl UClapError<Result<ArgMatches, ClapErrorWrapper>> for Result<ArgMatches, Error>

source§

fn with_exit_code(self, code: i32) -> Result<ArgMatches, ClapErrorWrapper>

source§

impl UClapError<ClapErrorWrapper> for Error

Implementors§

\ No newline at end of file +

Required Methods§

source

fn with_exit_code(self, code: i32) -> T

Implementations on Foreign Types§

source§

impl UClapError<Result<ArgMatches, ClapErrorWrapper>> for Result<ArgMatches, Error>

source§

fn with_exit_code(self, code: i32) -> Result<ArgMatches, ClapErrorWrapper>

source§

impl UClapError<ClapErrorWrapper> for Error

Implementors§

\ No newline at end of file diff --git a/dev/uucore/error/trait.UError.html b/dev/uucore/error/trait.UError.html index 9ebd5868f..87b93acd0 100644 --- a/dev/uucore/error/trait.UError.html +++ b/dev/uucore/error/trait.UError.html @@ -143,5 +143,5 @@ below the error message. The usage help is in the format: “Try {name} -- } } }
-

Trait Implementations§

source§

impl From<Errno> for Box<dyn UError>

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error<RichFormatter>> for Box<dyn UError>

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn UError>

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl<T> From<T> for Box<dyn UError>where - T: UError + 'static,

source§

fn from(t: T) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Box<dyn UError>

source§

fn from(i: i32) -> Self

Converts to this type from the input type.

Implementors§

\ No newline at end of file +

Trait Implementations§

source§

impl From<Errno> for Box<dyn UError>

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error<RichFormatter>> for Box<dyn UError>

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn UError>

source§

fn from(f: Error) -> Self

Converts to this type from the input type.
source§

impl<T> From<T> for Box<dyn UError>where + T: UError + 'static,

source§

fn from(t: T) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Box<dyn UError>

source§

fn from(i: i32) -> Self

Converts to this type from the input type.

Implementors§

\ No newline at end of file diff --git a/dev/uucore/macro.uio_error.html b/dev/uucore/macro.uio_error.html index aed3e5c67..c49808c14 100644 --- a/dev/uucore/macro.uio_error.html +++ b/dev/uucore/macro.uio_error.html @@ -1,4 +1,4 @@ -uio_error in uucore - Rust

Macro uucore::uio_error

source ·
macro_rules! uio_error {
+uio_error in uucore - Rust

Macro uucore::uio_error

source ·
macro_rules! uio_error {
     ($err:expr, $($args:tt)+) => { ... };
 }
Expand description

Shorthand to construct UIoError-instances.

This macro serves as a convenience call to quickly construct instances of diff --git a/dev/uucore/pipes/type.Error.html b/dev/uucore/pipes/type.Error.html index 777a1ead7..420048386 100644 --- a/dev/uucore/pipes/type.Error.html +++ b/dev/uucore/pipes/type.Error.html @@ -9,4 +9,4 @@

  • Represents all of the system’s errnos, instead of just the most common ones.
  • -

    Trait Implementations§

    source§

    impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Error

    source§

    fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>

    \ No newline at end of file +

    Trait Implementations§

    source§

    impl<T> FromIo<Result<T, Box<dyn UError + 'static, Global>>> for Error

    source§

    fn map_err_context(self, context: impl FnOnce() -> String) -> UResult<T>

    \ No newline at end of file