pub enum MappingLocator<N: Network> {
Locator(Locator<N>),
Resource(Identifier<N>),
}
Expand description
The operator references a local or external mapping name.
Variants§
Locator(Locator<N>)
The reference to a non-local mapping name.
Resource(Identifier<N>)
The reference to a local mapping name.
Trait Implementations§
source§impl<N: Clone + Network> Clone for MappingLocator<N>
impl<N: Clone + Network> Clone for MappingLocator<N>
source§fn clone(&self) -> MappingLocator<N>
fn clone(&self) -> MappingLocator<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: Network> Debug for MappingLocator<N>
impl<N: Network> Debug for MappingLocator<N>
source§impl<N: Network> Display for MappingLocator<N>
impl<N: Network> Display for MappingLocator<N>
source§impl<N: Network> FromBytes for MappingLocator<N>
impl<N: Network> FromBytes for MappingLocator<N>
source§impl<N: Network> FromStr for MappingLocator<N>
impl<N: Network> FromStr for MappingLocator<N>
source§impl<N: Hash + Network> Hash for MappingLocator<N>
impl<N: Hash + Network> Hash for MappingLocator<N>
source§impl<N: Network> Parser for MappingLocator<N>
impl<N: Network> Parser for MappingLocator<N>
source§impl<N: PartialEq + Network> PartialEq for MappingLocator<N>
impl<N: PartialEq + Network> PartialEq for MappingLocator<N>
source§fn eq(&self, other: &MappingLocator<N>) -> bool
fn eq(&self, other: &MappingLocator<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<N: Network> ToBytes for MappingLocator<N>
impl<N: Network> ToBytes for MappingLocator<N>
impl<N: Eq + Network> Eq for MappingLocator<N>
impl<N: Network> StructuralEq for MappingLocator<N>
impl<N: Network> StructuralPartialEq for MappingLocator<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for MappingLocator<N>where <N as Environment>::Field: RefUnwindSafe,
impl<N> Send for MappingLocator<N>
impl<N> Sync for MappingLocator<N>
impl<N> Unpin for MappingLocator<N>where <N as Environment>::Field: Unpin,
impl<N> UnwindSafe for MappingLocator<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.