pub enum AttributedError {
InvalidRange,
RangeOutOfBounds,
TextTooLong,
Malformed,
InvalidUtf8,
}Expand description
An error raised while building, encoding, or decoding attributed text.
Variants§
InvalidRange
A range’s start is after its end.
RangeOutOfBounds
A range extends past the text or splits a UTF-8 code point.
TextTooLong
The text is longer than the wire’s u32 length field.
Malformed
The payload is truncated or malformed.
InvalidUtf8
The text (or a link URL) is not valid UTF-8.
Trait Implementations§
Source§impl Clone for AttributedError
impl Clone for AttributedError
Source§impl Debug for AttributedError
impl Debug for AttributedError
Source§impl Display for AttributedError
impl Display for AttributedError
impl Eq for AttributedError
Source§impl PartialEq for AttributedError
impl PartialEq for AttributedError
impl StructuralPartialEq for AttributedError
Auto Trait Implementations§
impl Forget for AttributedError
impl Freeze for AttributedError
impl Move for AttributedError
impl RefUnwindSafe for AttributedError
impl Send for AttributedError
impl Sync for AttributedError
impl Unpin for AttributedError
impl UnsafeUnpin for AttributedError
impl UnwindSafe for AttributedError
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