We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Position
It seems Position is not publicly accessible: https://github.com/amazon-ion/ion-rust/blob/main/src/lib.rs#L181
Using
ion-rs = { version = "1.0.0-rc.6", features = ["experimental"] }
Given an IonError, err:
IonError
err
This works:
let position: Option<_> = match err { IonError::Incomplete(e) => Some(e.position()), IonError::Decoding(e) => e.position(), _ => None, };
But there is no way to explicitly name the type for the position variable, because I can’t actually import the Position type
let position: Option<&Position> = ...
286 | let position: Option<&Position> = match &self.0 { | ^^^^^^^^ not found in this scope
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems
Position
is not publicly accessible: https://github.com/amazon-ion/ion-rust/blob/main/src/lib.rs#L181Using
Given an
IonError
,err
:This works:
But there is no way to explicitly name the type for the position variable, because I can’t actually import the
Position
typeThe text was updated successfully, but these errors were encountered: