pub struct AssignError {
pub new_value: Value,
pub assigned_location: Option<Location>,
pub read_only_location: Location,
}Expand description
Error that occurs when assigning a value to a read-only variable.
Fields§
§new_value: ValueValue that was being assigned.
assigned_location: Option<Location>Location of the failed assignment.
read_only_location: LocationLocation where the variable was made read-only.
Trait Implementations§
Source§impl Clone for AssignError
impl Clone for AssignError
Source§fn clone(&self) -> AssignError
fn clone(&self) -> AssignError
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 AssignError
impl Debug for AssignError
Source§impl Display for AssignError
impl Display for AssignError
Source§impl Error for AssignError
impl Error for AssignError
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<AssignError> for PreparePwdError
impl From<AssignError> for PreparePwdError
Source§fn from(source: AssignError) -> Self
fn from(source: AssignError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AssignError
impl PartialEq for AssignError
impl Eq for AssignError
impl StructuralPartialEq for AssignError
Auto Trait Implementations§
impl Freeze for AssignError
impl !RefUnwindSafe for AssignError
impl !Send for AssignError
impl !Sync for AssignError
impl Unpin for AssignError
impl !UnwindSafe for AssignError
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