pub enum ViewPatchError {
InvalidPatchShape {
expected: &'static str,
actual: &'static str,
},
MissingKey {
operation: &'static str,
},
CardinalityViolation {
expected: usize,
actual: usize,
},
}Expand description
ViewPatchError
Structured failures for user-driven patch application.
Variants§
Trait Implementations§
Source§impl Clone for ViewPatchError
impl Clone for ViewPatchError
Source§fn clone(&self) -> ViewPatchError
fn clone(&self) -> ViewPatchError
Returns a duplicate 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 ViewPatchError
impl Debug for ViewPatchError
Source§impl Display for ViewPatchError
impl Display for ViewPatchError
Source§impl Error for ViewPatchError
impl Error for ViewPatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for ViewPatchError
impl PartialEq for ViewPatchError
impl Eq for ViewPatchError
impl StructuralPartialEq for ViewPatchError
Auto Trait Implementations§
impl Freeze for ViewPatchError
impl RefUnwindSafe for ViewPatchError
impl Send for ViewPatchError
impl Sync for ViewPatchError
impl Unpin for ViewPatchError
impl UnsafeUnpin for ViewPatchError
impl UnwindSafe for ViewPatchError
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