Skip to main content

MintableType

Trait MintableType 

Source
pub trait MintableType:
    Sized
    + WriteXDR
    + for<'r> ReadXDR<'r> {
    type Preimage;
}
Expand description

Marker trait for types that have a pre-signing (preimage) representation.

Preimage is intentionally unbound — the WriteXDR + ReadXDR requirement is deferred to the Mintable trait so that recursive contract_types can implement MintableType without triggering trait-solver overflow.

Required Associated Types§

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 MintableType for ()

Source§

impl MintableType for bool

Source§

impl MintableType for i16

Source§

impl MintableType for i32

Source§

impl MintableType for i64

Source§

impl MintableType for i128

Source§

impl MintableType for u16

Source§

impl MintableType for u32

Source§

impl MintableType for u64

Source§

impl MintableType for u128

Source§

impl<T: MintableType> MintableType for Box<T>

Available on crate feature alloc only.
Source§

impl<T: MintableType> MintableType for Option<T>

Source§

impl<T: MintableType> MintableType for Vec<T>

Available on crate feature alloc only.
Source§

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

Source§

type Preimage = StringInner<usize, VecStorageInner<[MaybeUninit<u8>; MAX]>>

Source§

impl<const N: usize, T: MintableType> MintableType for [T; N]

Source§

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

Source§

type Preimage = VecInner<u8, usize, VecStorageInner<[MaybeUninit<u8>; N]>>

Source§

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

Implementors§