pub enum SegmentError {
UnknownType,
InvalidReferredCount,
InvalidReference,
MissingEndMarker,
MissingPatternDictionary,
}Expand description
Errors related to segment processing.
Variants§
UnknownType
Unknown or reserved segment type.
InvalidReferredCount
Invalid referred-to segment count.
InvalidReference
Segment refers to a larger segment number.
MissingEndMarker
Missing end marker for unknown-length region.
MissingPatternDictionary
Missing required pattern dictionary.
Trait Implementations§
Source§impl Clone for SegmentError
impl Clone for SegmentError
Source§fn clone(&self) -> SegmentError
fn clone(&self) -> SegmentError
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 SegmentError
impl Debug for SegmentError
Source§impl Display for SegmentError
impl Display for SegmentError
Source§impl Error for SegmentError
impl Error for SegmentError
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<SegmentError> for DecodeError
impl From<SegmentError> for DecodeError
Source§fn from(e: SegmentError) -> Self
fn from(e: SegmentError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SegmentError
impl PartialEq for SegmentError
impl Copy for SegmentError
impl Eq for SegmentError
impl StructuralPartialEq for SegmentError
Auto Trait Implementations§
impl Freeze for SegmentError
impl RefUnwindSafe for SegmentError
impl Send for SegmentError
impl Sync for SegmentError
impl Unpin for SegmentError
impl UnsafeUnpin for SegmentError
impl UnwindSafe for SegmentError
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