#[non_exhaustive]pub enum PortabilityError {
IncrementDecrement,
}Expand description
Cause of an error because an expression contains a non-portable construct
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IncrementDecrement
An increment or decrement operator is used while the portable option
is on.
Trait Implementations§
Source§impl Clone for PortabilityError
impl Clone for PortabilityError
Source§fn clone(&self) -> PortabilityError
fn clone(&self) -> PortabilityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PortabilityError
impl Debug for PortabilityError
Source§impl Display for PortabilityError
impl Display for PortabilityError
impl Eq for PortabilityError
Source§impl Error for PortabilityError
impl Error for PortabilityError
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<E1, E2> From<PortabilityError> for ErrorCause<E1, E2>
impl<E1, E2> From<PortabilityError> for ErrorCause<E1, E2>
Source§fn from(source: PortabilityError) -> Self
fn from(source: PortabilityError) -> Self
Converts to this type from the input type.
Source§impl Hash for PortabilityError
impl Hash for PortabilityError
Source§impl PartialEq for PortabilityError
impl PartialEq for PortabilityError
impl StructuralPartialEq for PortabilityError
Auto Trait Implementations§
impl Freeze for PortabilityError
impl RefUnwindSafe for PortabilityError
impl Send for PortabilityError
impl Sync for PortabilityError
impl Unpin for PortabilityError
impl UnsafeUnpin for PortabilityError
impl UnwindSafe for PortabilityError
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