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(ValueLength),
    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
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(ValueLength)
InvalidDate(i32, u32, u32, u32, u32, u32, u32)
InvalidReservedTypeDescriptor
InvalidNegativeInt
EmptyOrderedStruct
ValueExtractionFailure(IonExtractionError)
NumericValueDoNotFiti64(TryFromBigIntError<BigInt>)
DecimalNotANumericValue(f64)
TypeNotSupported(IonValue)
Trait Implementations
sourceimpl Debug for IonParserError
 
impl Debug for IonParserError
sourceimpl Display for IonParserError
 
impl Display for IonParserError
sourceimpl Error for IonParserError
 
impl Error for IonParserError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
 
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
 
fn description(&self) -> &str
👎 Deprecated since 1.42.0: 
use the Display impl or to_string()
sourceimpl From<ParsingError> for IonParserError
 
impl From<ParsingError> for IonParserError
sourcefn from(err: ParsingError) -> Self
 
fn from(err: ParsingError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromBigIntError<BigInt>> for IonParserError
 
impl From<TryFromBigIntError<BigInt>> for IonParserError
sourcefn from(source: TryFromBigIntError<BigInt>) -> Self
 
fn from(source: TryFromBigIntError<BigInt>) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<IonParserError> for IonParserError
 
impl PartialEq<IonParserError> for IonParserError
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &IonParserError) -> bool
 
fn ne(&self, other: &IonParserError) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more