[−][src]Struct zei::core::AssetId
An issued asset ID.
Methods
impl AssetId
[src]
pub fn from_inner(inner: H256) -> AssetId
[src]
Create an AssetId from its inner type.
pub fn into_inner(self) -> H256
[src]
Convert the AssetId into its inner type.
pub fn into_scalar(self) -> Scalar
[src]
Convert the AssetId into Scalar inner type.
pub fn generate_asset_entropy(prevout_hash: H256, pubkey_hash: H256) -> H256
[src]
Generate the asset entropy from the issuance prevout and the pubkey hash.
pub fn from_entropy(entropy: H256) -> AssetId
[src]
Calculate the asset ID from the asset entropy.
pub fn reissuance_token_from_entropy(
entropy: H256,
confidential: bool
) -> AssetId
[src]
entropy: H256,
confidential: bool
) -> AssetId
Calculate the reissuance token asset ID from the asset entropy.
Trait Implementations
impl Clone for AssetId
[src]
impl Copy for AssetId
[src]
impl Default for AssetId
[src]
impl Eq for AssetId
[src]
impl Ord for AssetId
[src]
fn cmp(&self, other: &AssetId) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AssetId> for AssetId
[src]
impl PartialOrd<AssetId> for AssetId
[src]
fn partial_cmp(&self, other: &AssetId) -> Option<Ordering>
[src]
fn lt(&self, other: &AssetId) -> bool
[src]
fn le(&self, other: &AssetId) -> bool
[src]
fn gt(&self, other: &AssetId) -> bool
[src]
fn ge(&self, other: &AssetId) -> bool
[src]
impl Display for AssetId
[src]
impl Debug for AssetId
[src]
impl Hash for AssetId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Writeable for AssetId
[src]
impl Readable for AssetId
[src]
impl<'de> Deserialize<'de> for AssetId
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AssetId
[src]
Auto Trait Implementations
impl Send for AssetId
impl Sync for AssetId
impl Unpin for AssetId
impl UnwindSafe for AssetId
impl RefUnwindSafe for AssetId
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,