pub struct NonassignableError {
pub cause: NonassignableErrorCause,
pub vacancy: Vacancy,
}
Expand description
Error caused by an assign switch
Fields§
§cause: NonassignableErrorCause
Cause of the error
vacancy: Vacancy
State of the parameter value that caused an attempt to assign an alternate value that resulted in this error
Trait Implementations§
Source§impl Clone for NonassignableError
impl Clone for NonassignableError
Source§fn clone(&self) -> NonassignableError
fn clone(&self) -> NonassignableError
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 NonassignableError
impl Debug for NonassignableError
Source§impl Display for NonassignableError
impl Display for NonassignableError
Source§impl Error for NonassignableError
impl Error for NonassignableError
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 From<NonassignableError> for ErrorCause
impl From<NonassignableError> for ErrorCause
Source§fn from(source: NonassignableError) -> Self
fn from(source: NonassignableError) -> Self
Converts to this type from the input type.
Source§impl Hash for NonassignableError
impl Hash for NonassignableError
Source§impl PartialEq for NonassignableError
impl PartialEq for NonassignableError
impl Eq for NonassignableError
impl StructuralPartialEq for NonassignableError
Auto Trait Implementations§
impl Freeze for NonassignableError
impl RefUnwindSafe for NonassignableError
impl Send for NonassignableError
impl Sync for NonassignableError
impl Unpin for NonassignableError
impl UnwindSafe for NonassignableError
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§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