Struct vrp_core::prelude::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<Error> for GenericError
impl From<Error> for GenericError
source§fn from(value: Error) -> GenericError
fn from(value: Error) -> 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 Freeze for GenericError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more