pub trait Fungible {
// Required methods
fn transfer(
env: &mut Env<'_>,
from: &Address,
to: &Address,
amount: &Balance,
) -> Result<(), ContractError>
where Self: Sized;
fn balance(
env: &Env<'_>,
address: &Address,
) -> Result<Balance, ContractError>
where Self: Sized;
}Expand description
Fungible token trait prototype
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".