pub struct CrateData {
pub charon_version: CharonVersion,
pub translated: TranslatedCrate,
pub has_errors: bool,
}Expand description
The data of a generic crate. We serialize this to pass it to charon-ml, so this must be as
stable as possible. This is used for both ULLBC and LLBC.
Fields§
§charon_version: CharonVersionThe version of charon currently being used. charon-ml inspects this and errors if it is
trying to read an incompatible version (for now we compare versions for equality).
translated: TranslatedCrate§has_errors: boolIf there were errors, this contains only a partial description of the input crate.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrateData
impl<'de> Deserialize<'de> for CrateData
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de, __State: ?Sized> DeserializeState<'de, __State> for CrateDatawhere
CharonVersion: Deserialize<'de>,
TranslatedCrate: DeserializeState<'de, __State>,
bool: Deserialize<'de>,
impl<'de, __State: ?Sized> DeserializeState<'de, __State> for CrateDatawhere
CharonVersion: Deserialize<'de>,
TranslatedCrate: DeserializeState<'de, __State>,
bool: Deserialize<'de>,
fn deserialize_state<__D>(
__state: &__State,
__deserializer: __D,
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CrateData
impl RefUnwindSafe for CrateData
impl Send for CrateData
impl Sync for CrateData
impl Unpin for CrateData
impl UnwindSafe for CrateData
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
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more