Struct snarkvm_synthesizer_program::Import
source · pub struct Import<N: Network> { /* private fields */ }
Expand description
An import statement defines an imported program, and is of the form import {name}.{network};
.
If no network
-level domain is specified, the default network is used.
Implementations§
Trait Implementations§
source§impl<N: Network> Ord for Import<N>
impl<N: Network> Ord for Import<N>
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Ordering is determined by the NLD first, then the program name second.
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<N: PartialEq + Network> PartialEq for Import<N>
impl<N: PartialEq + Network> PartialEq for Import<N>
source§impl<N: Network> PartialOrd for Import<N>
impl<N: Network> PartialOrd for Import<N>
source§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Ordering is determined by the NLD first, then the program name second.
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<N: Eq + Network> Eq for Import<N>
impl<N: Network> StructuralEq for Import<N>
impl<N: Network> StructuralPartialEq for Import<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Import<N>where <N as Environment>::Field: RefUnwindSafe,
impl<N> Send for Import<N>
impl<N> Sync for Import<N>
impl<N> Unpin for Import<N>where <N as Environment>::Field: Unpin,
impl<N> UnwindSafe for Import<N>where <N as Environment>::Field: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.