pub struct ForeignContract {
pub contracts: Vec<Annotation>,
pub impurity: Option<String>,
}Expand description
The verifier side of a ForeignFn: its contract as written, and why
it is impure. Lifted into the neutral IR at extraction.
Fields§
§contracts: Vec<Annotation>The contract’s blocks in source order: Pancake’s /@ … @/, C’s
/*@ … */ and //@.
impurity: Option<String>Why a call has a side effect, when the reader found one — an FFI
call, a store, a shared-memory access, raise, a global written,
directly or through a callee. None for a pure function, or a reader
that does not look (C).
Trait Implementations§
Source§impl Clone for ForeignContract
impl Clone for ForeignContract
Source§fn clone(&self) -> ForeignContract
fn clone(&self) -> ForeignContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForeignContract
impl Debug for ForeignContract
Auto Trait Implementations§
impl Freeze for ForeignContract
impl RefUnwindSafe for ForeignContract
impl Send for ForeignContract
impl Sync for ForeignContract
impl Unpin for ForeignContract
impl UnsafeUnpin for ForeignContract
impl UnwindSafe for ForeignContract
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.