#[non_exhaustive]pub enum RdOptionPairErrorKind {
EmptyPair,
MissingEquals,
EmptyKey,
EmptyValue,
}Expand description
Reasons a scalar option pair is malformed.
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.
EmptyPair
The entry was empty.
MissingEquals
No equals separator was present.
EmptyKey
The key was empty.
EmptyValue
The value was empty.
Trait Implementations§
Source§impl Clone for RdOptionPairErrorKind
impl Clone for RdOptionPairErrorKind
Source§fn clone(&self) -> RdOptionPairErrorKind
fn clone(&self) -> RdOptionPairErrorKind
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 moreimpl Copy for RdOptionPairErrorKind
Source§impl Debug for RdOptionPairErrorKind
impl Debug for RdOptionPairErrorKind
Source§impl Display for RdOptionPairErrorKind
impl Display for RdOptionPairErrorKind
impl Eq for RdOptionPairErrorKind
Source§impl PartialEq for RdOptionPairErrorKind
impl PartialEq for RdOptionPairErrorKind
impl StructuralPartialEq for RdOptionPairErrorKind
Auto Trait Implementations§
impl Freeze for RdOptionPairErrorKind
impl RefUnwindSafe for RdOptionPairErrorKind
impl Send for RdOptionPairErrorKind
impl Sync for RdOptionPairErrorKind
impl Unpin for RdOptionPairErrorKind
impl UnsafeUnpin for RdOptionPairErrorKind
impl UnwindSafe for RdOptionPairErrorKind
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