pub struct OpaqueLoads {
pub names: Vec<String>,
pub escapes: bool,
pub loaders: Vec<LoaderReturn>,
}Expand description
How the code of one module uses the values of its loads with an unknown
source. A consumer must treat each exported contract of the project with
one of names as its export name as open. When escapes is true, the
consumer must treat each exported contract of the project as open. For
each of loaders, the consumer reads the results of the calls of that
function with the same rules.
Fields§
§names: Vec<String>The export names that the code reads on a loaded value, sorted and
without repeats. default names the default export.
escapes: booltrue when a loaded value goes to code that the facts do not follow,
for example an alias, a call argument, a spread, or a return from a
function that has no contract.
loaders: Vec<LoaderReturn>The functions of the module that return a loaded value, sorted and without repeats. Each caller of such a function gets the loaded value.
Implementations§
Source§impl OpaqueLoads
impl OpaqueLoads
Trait Implementations§
Source§impl Clone for OpaqueLoads
impl Clone for OpaqueLoads
Source§impl Debug for OpaqueLoads
impl Debug for OpaqueLoads
impl<'__de> Decode<'__de> for OpaqueLoadswhere
'__de:,
Source§impl Default for OpaqueLoads
impl Default for OpaqueLoads
impl Encode for OpaqueLoads
impl Eq for OpaqueLoads
Source§impl PartialEq for OpaqueLoads
impl PartialEq for OpaqueLoads
impl StructuralPartialEq for OpaqueLoads
Auto Trait Implementations§
impl Forget for OpaqueLoads
impl Freeze for OpaqueLoads
impl Move for OpaqueLoads
impl RefUnwindSafe for OpaqueLoads
impl Send for OpaqueLoads
impl Sync for OpaqueLoads
impl Unpin for OpaqueLoads
impl UnsafeUnpin for OpaqueLoads
impl UnwindSafe for OpaqueLoads
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.