Enum ion_binary_rs::IonParserError
source · pub enum IonParserError {
Show 34 variants
Unimplemented,
NullAnnotationFound,
NestedAnnotations,
BadAnnotationLength,
SharedTableAndLocalTableDeclarationIntTheSameAnnotation,
SymbolIdNotDefined,
LocalTableWithoutInternalStruct,
SharedTableDefinitionWithoutName,
ErrorAddingSharedTableToContext(SymbolContextError),
ErrorAddingCreatingLocal(SymbolContextError),
LocalSymbolTableWithoutValidImport,
SymbolNotFoundInTable,
ListLengthWasTooShort,
NonUtf8String,
DidNotGetAListConsumingAListThisIsABug,
SymbolIdTooBig,
TableVersionTooBig,
DateValueTooBig,
DateSecondFractionOverflow,
DateNegativeSecondFraction,
DateWithHourButNoMinutes,
ValueLenTooBig,
NotValidLengthFloat,
BinaryError(ParsingError),
DecimalExponentTooBig,
InvalidBoolLength(u8),
InvalidDate(i32, u32, u32, u32, u32, u32, u32),
InvalidReservedTypeDescriptor,
InvalidNegativeInt,
EmptyOrderedStruct,
ValueExtractionFailure(IonExtractionError),
NumericValueDoNotFiti64(TryFromBigIntError<BigInt>),
DecimalNotANumericValue(f64),
TypeNotSupported(IonValue),
}
Expand description
Indicated a problem in the binary blob internal structure. When all data is read the library will return IonParserError::BinaryError(ParsingError::NoDataToRead).
Variants§
Unimplemented
NullAnnotationFound
NestedAnnotations
BadAnnotationLength
SymbolIdNotDefined
LocalTableWithoutInternalStruct
ErrorAddingCreatingLocal(SymbolContextError)
LocalSymbolTableWithoutValidImport
SymbolNotFoundInTable
ListLengthWasTooShort
NonUtf8String
DidNotGetAListConsumingAListThisIsABug
SymbolIdTooBig
TableVersionTooBig
DateValueTooBig
DateSecondFractionOverflow
DateNegativeSecondFraction
DateWithHourButNoMinutes
ValueLenTooBig
NotValidLengthFloat
BinaryError(ParsingError)
DecimalExponentTooBig
InvalidBoolLength(u8)
InvalidDate(i32, u32, u32, u32, u32, u32, u32)
InvalidReservedTypeDescriptor
InvalidNegativeInt
EmptyOrderedStruct
ValueExtractionFailure(IonExtractionError)
NumericValueDoNotFiti64(TryFromBigIntError<BigInt>)
DecimalNotANumericValue(f64)
TypeNotSupported(IonValue)
Trait Implementations§
source§impl Debug for IonParserError
impl Debug for IonParserError
source§impl Display for IonParserError
impl Display for IonParserError
source§impl Error for IonParserError
impl Error for IonParserError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParsingError> for IonParserError
impl From<ParsingError> for IonParserError
source§fn from(err: ParsingError) -> Self
fn from(err: ParsingError) -> Self
Converts to this type from the input type.
source§impl From<TryFromBigIntError<BigInt>> for IonParserError
impl From<TryFromBigIntError<BigInt>> for IonParserError
source§fn from(source: TryFromBigIntError<BigInt>) -> Self
fn from(source: TryFromBigIntError<BigInt>) -> Self
Converts to this type from the input type.
source§impl PartialEq for IonParserError
impl PartialEq for IonParserError
source§fn eq(&self, other: &IonParserError) -> bool
fn eq(&self, other: &IonParserError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IonParserError
Auto Trait Implementations§
impl !RefUnwindSafe for IonParserError
impl Send for IonParserError
impl Sync for IonParserError
impl Unpin for IonParserError
impl !UnwindSafe for IonParserError
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