pub trait NativeProof {
type ResourceManager;
// Required methods
fn amount<Y, E>(&self, api: &mut Y) -> Result<Decimal, E>
where Y: SystemObjectApi<E>,
E: SystemApiError;
fn resource_address<Y, E>(&self, api: &mut Y) -> Result<ResourceAddress, E>
where Y: SystemObjectApi<E>,
E: SystemApiError;
fn resource_manager<Y, E>(
&self,
api: &mut Y,
) -> Result<Self::ResourceManager, E>
where Y: SystemObjectApi<E>,
E: SystemApiError;
fn clone<Y, E>(&self, api: &mut Y) -> Result<Proof, E>
where Y: SystemObjectApi<E>,
E: SystemApiError;
fn drop<Y, E>(self, api: &mut Y) -> Result<(), E>
where Y: SystemApi<E>,
E: SystemApiError;
}
Required Associated Types§
Required Methods§
fn amount<Y, E>(&self, api: &mut Y) -> Result<Decimal, E>where
Y: SystemObjectApi<E>,
E: SystemApiError,
fn resource_address<Y, E>(&self, api: &mut Y) -> Result<ResourceAddress, E>where
Y: SystemObjectApi<E>,
E: SystemApiError,
fn resource_manager<Y, E>(
&self,
api: &mut Y,
) -> Result<Self::ResourceManager, E>where
Y: SystemObjectApi<E>,
E: SystemApiError,
fn clone<Y, E>(&self, api: &mut Y) -> Result<Proof, E>where
Y: SystemObjectApi<E>,
E: SystemApiError,
fn drop<Y, E>(self, api: &mut Y) -> Result<(), E>where
Y: SystemApi<E>,
E: SystemApiError,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.