pub trait Store {
// Required method
fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>;
}Expand description
A data structure that can be serialized into cells.
Required Methods§
Sourcefn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Store for ()
impl Store for ()
fn store_into( &self, _: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for bool
impl Store for bool
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for i8
impl Store for i8
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for i16
impl Store for i16
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for i32
impl Store for i32
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for i64
impl Store for i64
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for i128
impl Store for i128
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for u8
impl Store for u8
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for u16
impl Store for u16
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for u32
impl Store for u32
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for u64
impl Store for u64
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl Store for u128
impl Store for u128
fn store_into( &self, b: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T1: Store, T2: Store, T3: Store, T4: Store, T5: Store, T6: Store> Store for (T1, T2, T3, T4, T5, T6)
impl<T1: Store, T2: Store, T3: Store, T4: Store, T5: Store, T6: Store> Store for (T1, T2, T3, T4, T5, T6)
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T1: Store, T2: Store, T3: Store, T4: Store, T5: Store> Store for (T1, T2, T3, T4, T5)
impl<T1: Store, T2: Store, T3: Store, T4: Store, T5: Store> Store for (T1, T2, T3, T4, T5)
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T1: Store, T2: Store, T3: Store, T4: Store> Store for (T1, T2, T3, T4)
impl<T1: Store, T2: Store, T3: Store, T4: Store> Store for (T1, T2, T3, T4)
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T1: Store, T2: Store, T3: Store> Store for (T1, T2, T3)
impl<T1: Store, T2: Store, T3: Store> Store for (T1, T2, T3)
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T1: Store, T2: Store> Store for (T1, T2)
impl<T1: Store, T2: Store> Store for (T1, T2)
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T: Store + ?Sized> Store for &T
impl<T: Store + ?Sized> Store for &T
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T: Store + ?Sized> Store for &mut T
impl<T: Store + ?Sized> Store for &mut T
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T: Store + ?Sized> Store for Arc<T>
impl<T: Store + ?Sized> Store for Arc<T>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T: Store + ?Sized> Store for Box<T>
impl<T: Store + ?Sized> Store for Box<T>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T: Store + ?Sized> Store for Rc<T>
impl<T: Store + ?Sized> Store for Rc<T>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Source§impl<T: Store> Store for Option<T>
impl<T: Store> Store for Option<T>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Implementors§
impl Store for Account
impl Store for AccountBlock
impl Store for AccountState
impl Store for AccountStatus
impl Store for AccountStatusChange
impl Store for ActionPhase
impl Store for AnyAddr
impl Store for Anycast
impl Store for AuthorityMarksConfig
impl Store for Block
impl Store for BlockCounters
impl Store for BlockCreationRewards
impl Store for BlockExtra
impl Store for BlockId
impl Store for BlockInfo
impl Store for BlockLimits
impl Store for BlockParamLimits
impl Store for BlockProof
impl Store for BlockRef
impl Store for BlockSignature
impl Store for BlockSignatures
impl Store for BlockchainConfig
impl Store for BlockchainConfigParams
impl Store for BouncePhase
impl Store for BurningConfig
impl Store for CatchainConfig
Available on non-crate feature
tycho only.impl Store for Cell
impl Store for CellBuilder
impl Store for CellSlice<'_>
impl Store for ComputePhase
impl Store for ComputePhaseSkipReason
impl Store for ConfigProposalSetup
impl Store for ConfigVotingSetup
impl Store for ConsensusConfig
Available on non-crate feature
tycho only.