Struct vrp_core::utils::GenericError
source · pub struct GenericError(/* private fields */);
Expand description
A basic error type which, essentially, a wrapper on String type.
Implementations§
source§impl GenericError
impl GenericError
sourcepub fn join_many(errs: &[GenericError], separator: &str) -> String
pub fn join_many(errs: &[GenericError], separator: &str) -> String
Joins many errors with separator
Trait Implementations§
source§impl Clone for GenericError
impl Clone for GenericError
source§fn clone(&self) -> GenericError
fn clone(&self) -> GenericError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenericError
impl Debug for GenericError
source§impl Display for GenericError
impl Display for GenericError
source§impl Error for GenericError
impl Error for GenericError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<'a> From<&'a str> for GenericError
impl<'a> From<&'a str> for GenericError
source§fn from(value: &'a str) -> GenericError
fn from(value: &'a str) -> GenericError
Converts to this type from the input type.
source§impl From<String> for GenericError
impl From<String> for GenericError
source§fn from(msg: String) -> GenericError
fn from(msg: String) -> GenericError
Converts to this type from the input type.
source§impl Hash for GenericError
impl Hash for GenericError
source§impl PartialEq for GenericError
impl PartialEq for GenericError
source§fn eq(&self, other: &GenericError) -> bool
fn eq(&self, other: &GenericError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GenericError
Auto Trait Implementations§
impl RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl UnwindSafe for GenericError
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