Skip to main content

Mintable

Trait Mintable 

Source
pub trait Mintable: MintableType
where Self::Preimage: WriteXDR + for<'r> ReadXDR<'r>,
{ // Required method fn mint_into_parent( preimage: Self::Preimage, children: &mut ChildNodeBuf, ) -> Self; }

Required Methods§

Source

fn mint_into_parent( preimage: Self::Preimage, children: &mut ChildNodeBuf, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Mintable for ()

Source§

fn mint_into_parent(preimage: (), _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for bool

Source§

fn mint_into_parent(preimage: bool, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for i16

Source§

fn mint_into_parent(preimage: i16, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for i32

Source§

fn mint_into_parent(preimage: i32, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for i64

Source§

fn mint_into_parent(preimage: i64, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for i128

Source§

fn mint_into_parent(preimage: i128, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for u16

Source§

fn mint_into_parent(preimage: u16, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for u32

Source§

fn mint_into_parent(preimage: u32, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for u64

Source§

fn mint_into_parent(preimage: u64, _children: &mut ChildNodeBuf) -> Self

Source§

impl Mintable for u128

Source§

fn mint_into_parent(preimage: u128, _children: &mut ChildNodeBuf) -> Self

Source§

impl<T: Mintable> Mintable for Box<T>
where T::Preimage: Sized + WriteXDR + for<'r> ReadXDR<'r>, Box<T::Preimage>: WriteXDR + for<'r> ReadXDR<'r>,

Available on crate feature alloc only.
Source§

fn mint_into_parent( preimage: Box<T::Preimage>, children: &mut ChildNodeBuf, ) -> Self

Source§

impl<T: Mintable> Mintable for Option<T>
where T::Preimage: WriteXDR + for<'r> ReadXDR<'r>, Option<T::Preimage>: WriteXDR + for<'r> ReadXDR<'r>,

Source§

fn mint_into_parent( preimage: Option<T::Preimage>, children: &mut ChildNodeBuf, ) -> Self

Source§

impl<T: Mintable> Mintable for Vec<T>
where T::Preimage: WriteXDR + for<'r> ReadXDR<'r>, Vec<T::Preimage>: WriteXDR + for<'r> ReadXDR<'r>,

Available on crate feature alloc only.
Source§

fn mint_into_parent( preimage: Vec<T::Preimage>, children: &mut ChildNodeBuf, ) -> Self

Source§

impl<const MAX: usize> Mintable for String<MAX>

Source§

fn mint_into_parent(preimage: Self, _children: &mut ChildNodeBuf) -> Self

Source§

impl<const N: usize, T: Mintable> Mintable for [T; N]
where T::Preimage: WriteXDR + for<'r> ReadXDR<'r>, [T::Preimage; N]: WriteXDR + for<'r> ReadXDR<'r>,

Source§

fn mint_into_parent( preimage: [T::Preimage; N], children: &mut ChildNodeBuf, ) -> Self

Source§

impl<const N: usize> Mintable for Vec<u8, N>

Source§

fn mint_into_parent(preimage: Self, _children: &mut ChildNodeBuf) -> Self

Source§

impl<const N: usize> Mintable for [u8; N]

Source§

fn mint_into_parent(preimage: [u8; N], _children: &mut ChildNodeBuf) -> Self

Implementors§

Source§

impl Mintable for BlockHeight

Source§

impl Mintable for ContractAddress

Source§

impl Mintable for ContractEntrypointID

Source§

impl Mintable for Ed25519PublicKey

Source§

impl Mintable for Ed25519Signature

Source§

impl Mintable for I256

Source§

impl Mintable for MlDsa65PublicKey

Source§

impl Mintable for MlDsa65Signature

Source§

impl Mintable for PublicKey

Source§

impl Mintable for SHA256Hash

Source§

impl Mintable for Signature

Source§

impl Mintable for U256

Source§

impl<T: Mintable + 'static, const MAX: u32> Mintable for VecM<T, MAX>
where T::Preimage: WriteXDR + for<'r> ReadXDR<'r> + 'static, VecM<T::Preimage, MAX>: WriteXDR + for<'r> ReadXDR<'r>,

Available on crate feature alloc only.
Source§

impl<T: Mintable> Mintable for Signed<T>
where T::Preimage: WriteXDR + for<'r> ReadXDR<'r>, AuthTokenPreimage<T::Preimage>: WriteXDR + for<'r> ReadXDR<'r>,

Available on crate feature alloc only.
Source§

impl<const MAX: u32> Mintable for BytesM<MAX>

Source§

impl<const MAX: u32> Mintable for StringM<MAX>

Available on crate feature alloc only.