#[non_exhaustive]pub enum RangeInvalid {
Reversed,
IllegalWhitespace,
DoesNotStartWithToken,
NoNonempty,
Unparseable,
}Expand description
Unless the variant says otherwise, the spec says implementors MAY ignore or reject https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-6
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.
Reversed
IllegalWhitespace
DoesNotStartWithToken
This error cannot be disambiguated from certain other malformed starts of ranges. Therefore, the only spec-compliant way of handling this error-code is ignoring the range https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-5
NoNonempty
Unparseable
Trait Implementations§
Source§impl Clone for RangeInvalid
impl Clone for RangeInvalid
impl Copy for RangeInvalid
Source§impl Debug for RangeInvalid
impl Debug for RangeInvalid
impl Eq for RangeInvalid
Source§impl PartialEq for RangeInvalid
impl PartialEq for RangeInvalid
impl StructuralPartialEq for RangeInvalid
Auto Trait Implementations§
impl Forget for RangeInvalid
impl Freeze for RangeInvalid
impl RefUnwindSafe for RangeInvalid
impl Send for RangeInvalid
impl Sync for RangeInvalid
impl Unpin for RangeInvalid
impl UnsafeUnpin for RangeInvalid
impl UnwindSafe for RangeInvalid
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