pub trait StateTransitionWitnessSigned: Sized {
// Required methods
fn inputs(&self) -> &BTreeMap<PlatformAddress, (AddressNonce, Credits)>;
fn inputs_mut(
&mut self,
) -> &mut BTreeMap<PlatformAddress, (AddressNonce, Credits)>;
fn set_inputs(
&mut self,
inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
);
fn witnesses(&self) -> &Vec<AddressWitness>;
fn set_witnesses(&mut self, witnesses: Vec<AddressWitness>);
}Required Methods§
Sourcefn inputs(&self) -> &BTreeMap<PlatformAddress, (AddressNonce, Credits)>
fn inputs(&self) -> &BTreeMap<PlatformAddress, (AddressNonce, Credits)>
Get inputs
Sourcefn inputs_mut(
&mut self,
) -> &mut BTreeMap<PlatformAddress, (AddressNonce, Credits)>
fn inputs_mut( &mut self, ) -> &mut BTreeMap<PlatformAddress, (AddressNonce, Credits)>
Get inputs as a mutable map
Sourcefn set_inputs(
&mut self,
inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
)
fn set_inputs( &mut self, inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>, )
Set inputs
Sourcefn witnesses(&self) -> &Vec<AddressWitness>
fn witnesses(&self) -> &Vec<AddressWitness>
returns the witnesses as an array
Sourcefn set_witnesses(&mut self, witnesses: Vec<AddressWitness>)
fn set_witnesses(&mut self, witnesses: Vec<AddressWitness>)
set new witnesses
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.