Struct vrp_pragmatic::format::FormatError [−][src]
pub struct FormatError {
pub code: String,
pub cause: String,
pub action: String,
pub details: Option<String>,
}Expand description
A format error.
Fields
code: StringExpand description
An error code in registry.
cause: StringExpand description
A possible error cause.
action: StringExpand description
An action to take in order to recover from error.
details: Option<String>Expand description
A details about exception.
Implementations
impl FormatError[src]
impl FormatError[src]pub fn new(code: String, cause: String, action: String) -> Self[src]
pub fn new(code: String, cause: String, action: String) -> Self[src]Creates a new instance of FormatError action without details.
pub fn new_with_details(
code: String,
cause: String,
action: String,
details: String
) -> Self[src]
pub fn new_with_details(
code: String,
cause: String,
action: String,
details: String
) -> Self[src]Creates a new instance of FormatError action.
pub fn format_many(errors: &[Self], separator: &str) -> String[src]
pub fn format_many(errors: &[Self], separator: &str) -> String[src]Formats multiple format errors into string.
Trait Implementations
impl Clone for FormatError[src]
impl Clone for FormatError[src]fn clone(&self) -> FormatError[src]
fn clone(&self) -> FormatError[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for FormatError[src]
impl Debug for FormatError[src]impl Display for FormatError[src]
impl Display for FormatError[src]impl Serialize for FormatError[src]
impl Serialize for FormatError[src]Auto Trait Implementations
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnwindSafe for FormatError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,