[−][src]Enum flexbuffers::ReaderError
All the possible errors when reading a flexbuffer.
Variants
One of the following data errors occured:
- The read flexbuffer had an offset that pointed outside the flexbuffer.
- The 'negative indicies' where length and map keys are stored were out of bounds
- The buffer was too small to contain a flexbuffer root.
Failed to parse a valid FlexbufferType and Bitwidth from a type byte.
Flexbuffer type of the read data does not match function used.
Fields of UnexpectedFlexbufferType
expected: FlexBufferType
actual: FlexBufferType
BitWidth type of the read data does not match function used.
Read a flexbuffer offset or length that overflowed usize.
Tried to index a type that's not one of the Flexbuffer vector types.
Tried to index a Flexbuffer vector or map out of bounds.
A Map was indexed with a key that it did not contain.
Failed to parse a Utf8 string.
The Option will be None
if and only if this Error was deserialized.
get_slice failed because the given data buffer is misaligned.
Trait Implementations
impl Clone for Error
[src]
impl Debug for Error
[src]
impl<'de> Deserialize<'de> for Error
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Error
[src]
impl Eq for Error
[src]
impl Error for Error
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for DeserializationError
[src]
impl From<Utf8Error> for Error
[src]
impl PartialEq<Error> for Error
[src]
impl Serialize for Error
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Unpin for Error
[src]
impl UnwindSafe for Error
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,