pub trait Serializable {
// Required method
fn write_into<W>(&self, target: &mut W)
where W: ByteWriter;
// Provided methods
fn to_bytes(&self) -> Vec<u8> ⓘ { ... }
fn get_size_hint(&self) -> usize { ... }
}
Expand description
Defines how to serialize Self
into bytes.
Required Methods§
Sourcefn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
into bytes and writes these bytes into the target
.
Provided Methods§
Sourcefn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self.
The default implementation returns zero.
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.
Implementations on Foreign Types§
Source§impl Serializable for &PubKeyPoly
impl Serializable for &PubKeyPoly
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for &SignatureHeader
impl Serializable for &SignatureHeader
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for &SignaturePoly
impl Serializable for &SignaturePoly
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for &Nonce
impl Serializable for &Nonce
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for HashFunction
impl Serializable for HashFunction
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ModuleKind
impl Serializable for ModuleKind
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for LibraryNamespace
impl Serializable for LibraryNamespace
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Operation
impl Serializable for Operation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NodeMutation
impl Serializable for NodeMutation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for SmtLeaf
impl Serializable for SmtLeaf
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountType
impl Serializable for AccountType
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountId
impl Serializable for AccountId
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountIdPrefix
impl Serializable for AccountIdPrefix
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AuthSecretKey
impl Serializable for AuthSecretKey
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for FeltRepresentation
impl Serializable for FeltRepresentation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for MultiWordRepresentation
impl Serializable for MultiWordRepresentation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for WordRepresentation
impl Serializable for WordRepresentation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for StorageEntry
impl Serializable for StorageEntry
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountUpdateDetails
impl Serializable for AccountUpdateDetails
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for StorageSlot
impl Serializable for StorageSlot
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for StorageSlotType
impl Serializable for StorageSlotType
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for Asset
impl Serializable for Asset
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for NoteFile
impl Serializable for NoteFile
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteTag
impl Serializable for NoteTag
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteType
impl Serializable for NoteType
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for InputNote
impl Serializable for InputNote
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for OutputNote
impl Serializable for OutputNote
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for BatchingMethod
impl Serializable for BatchingMethod
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§impl Serializable for FieldExtension
impl Serializable for FieldExtension
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self.
Source§impl Serializable for str
impl Serializable for str
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for u8
impl Serializable for u8
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for u16
impl Serializable for u16
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for u32
impl Serializable for u32
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for u64
impl Serializable for u64
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for u128
impl Serializable for u128
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for ()
impl Serializable for ()
fn write_into<W>(&self, _target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for usize
impl Serializable for usize
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for String
impl Serializable for String
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for ExecutionProof
impl Serializable for ExecutionProof
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for PublicInputs
impl Serializable for PublicInputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProcedureName
impl Serializable for ProcedureName
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for QualifiedProcedureName
impl Serializable for QualifiedProcedureName
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for LibraryPath
impl Serializable for LibraryPath
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for KernelLibrary
impl Serializable for KernelLibrary
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Library
impl Serializable for Library
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Version
impl Serializable for Version
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AdviceMap
impl Serializable for AdviceMap
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for SourceSpan
impl Serializable for SourceSpan
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Kernel
impl Serializable for Kernel
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for DecoratorId
impl Serializable for DecoratorId
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for MastForest
impl Serializable for MastForest
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Program
impl Serializable for Program
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProgramInfo
impl Serializable for ProgramInfo
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for StackInputs
impl Serializable for StackInputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for StackOutputs
impl Serializable for StackOutputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for SecretKey
impl Serializable for SecretKey
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Signature
impl Serializable for Signature
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for RpoDigest
impl Serializable for RpoDigest
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for RpxDigest
impl Serializable for RpxDigest
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for NodeIndex
impl Serializable for NodeIndex
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for InOrderIndex
impl Serializable for InOrderIndex
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for PartialMmr
impl Serializable for PartialMmr
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for PartialMerkleTree
impl Serializable for PartialMerkleTree
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for MerklePath
impl Serializable for MerklePath
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for RootPath
impl Serializable for RootPath
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ValuePath
impl Serializable for ValuePath
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for SmtProof
impl Serializable for SmtProof
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Smt
impl Serializable for Smt
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for StoreNode
impl Serializable for StoreNode
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for RpoRandomCoin
impl Serializable for RpoRandomCoin
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for RpxRandomCoin
impl Serializable for RpxRandomCoin
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountIdPrefixV0
impl Serializable for AccountIdPrefixV0
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountIdV0
impl Serializable for AccountIdV0
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountProcedureInfo
impl Serializable for AccountProcedureInfo
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountCode
impl Serializable for AccountCode
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for MapRepresentation
impl Serializable for MapRepresentation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for StorageValueName
impl Serializable for StorageValueName
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TemplateType
impl Serializable for TemplateType
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for FieldIdentifier
impl Serializable for FieldIdentifier
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for MapEntry
impl Serializable for MapEntry
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountComponentMetadata
impl Serializable for AccountComponentMetadata
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountComponentTemplate
impl Serializable for AccountComponentTemplate
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountStorageDelta
impl Serializable for AccountStorageDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for StorageMapDelta
impl Serializable for StorageMapDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountDelta
impl Serializable for AccountDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountVaultDelta
impl Serializable for AccountVaultDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for FungibleAssetDelta
impl Serializable for FungibleAssetDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for NonFungibleAssetDelta
impl Serializable for NonFungibleAssetDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for AccountFile
impl Serializable for AccountFile
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountHeader
impl Serializable for AccountHeader
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for PartialAccount
impl Serializable for PartialAccount
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountStorageHeader
impl Serializable for AccountStorageHeader
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for StorageMap
impl Serializable for StorageMap
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for PartialStorage
impl Serializable for PartialStorage
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountStorage
impl Serializable for AccountStorage
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for Account
impl Serializable for Account
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for FungibleAsset
impl Serializable for FungibleAsset
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for NonFungibleAsset
impl Serializable for NonFungibleAsset
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for PartialVault
impl Serializable for PartialVault
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AssetVault
impl Serializable for AssetVault
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for BatchAccountUpdate
impl Serializable for BatchAccountUpdate
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for BatchId
impl Serializable for BatchId
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for BatchNoteTree
impl Serializable for BatchNoteTree
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for OrderedBatches
impl Serializable for OrderedBatches
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProposedBatch
impl Serializable for ProposedBatch
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProvenBatch
impl Serializable for ProvenBatch
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountUpdateWitness
impl Serializable for AccountUpdateWitness
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountWitness
impl Serializable for AccountWitness
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for BlockAccountUpdate
impl Serializable for BlockAccountUpdate
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for BlockNumber
impl Serializable for BlockNumber
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for BlockHeader
impl Serializable for BlockHeader
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for BlockNoteTree
impl Serializable for BlockNoteTree
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NullifierWitness
impl Serializable for NullifierWitness
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProposedBlock
impl Serializable for ProposedBlock
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProvenBlock
impl Serializable for ProvenBlock
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteAssets
impl Serializable for NoteAssets
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteDetails
impl Serializable for NoteDetails
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteHeader
impl Serializable for NoteHeader
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteInputs
impl Serializable for NoteInputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteInclusionProof
impl Serializable for NoteInclusionProof
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteLocation
impl Serializable for NoteLocation
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteMetadata
impl Serializable for NoteMetadata
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteId
impl Serializable for NoteId
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Nullifier
impl Serializable for Nullifier
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for PartialNote
impl Serializable for PartialNote
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteRecipient
impl Serializable for NoteRecipient
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for NoteScript
impl Serializable for NoteScript
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for Note
impl Serializable for Note
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ExecutedTransaction
impl Serializable for ExecutedTransaction
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionMeasurements
impl Serializable for TransactionMeasurements
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AccountInputs
impl Serializable for AccountInputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionInputs
impl Serializable for TransactionInputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for OrderedTransactionHeaders
impl Serializable for OrderedTransactionHeaders
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for OutputNotes
impl Serializable for OutputNotes
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionOutputs
impl Serializable for TransactionOutputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for PartialBlockchain
impl Serializable for PartialBlockchain
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for InputNoteCommitment
impl Serializable for InputNoteCommitment
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for ProvenTransaction
impl Serializable for ProvenTransaction
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TxAccountUpdate
impl Serializable for TxAccountUpdate
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionId
impl Serializable for TransactionId
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionArgs
impl Serializable for TransactionArgs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionScript
impl Serializable for TransactionScript
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionHeader
impl Serializable for TransactionHeader
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TransactionWitness
impl Serializable for TransactionWitness
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for AdviceInputs
impl Serializable for AdviceInputs
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for TraceInfo
impl Serializable for TraceInfo
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§impl Serializable for ProofOptions
impl Serializable for ProofOptions
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§impl Serializable for Commitments
impl Serializable for Commitments
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self.
Source§impl Serializable for Context
impl Serializable for Context
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§impl Serializable for OodFrame
impl Serializable for OodFrame
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self.
Source§impl Serializable for Queries
impl Serializable for Queries
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
.
Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self.
Source§impl Serializable for Proof
impl Serializable for Proof
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl Serializable for FriProof
impl Serializable for FriProof
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes self
and writes the resulting bytes into the target
writer.
Source§impl Serializable for BaseElement
impl Serializable for BaseElement
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for BaseElement
impl Serializable for BaseElement
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl Serializable for BaseElement
impl Serializable for BaseElement
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn get_size_hint(&self) -> usize
Source§impl<B> Serializable for CubeExtension<B>where
B: ExtensibleField<3>,
impl<B> Serializable for CubeExtension<B>where
B: ExtensibleField<3>,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl<B> Serializable for QuadExtension<B>where
B: ExtensibleField<2>,
impl<B> Serializable for QuadExtension<B>where
B: ExtensibleField<2>,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Source§impl<H> Serializable for BatchMerkleProof<H>where
H: Hasher,
impl<H> Serializable for BatchMerkleProof<H>where
H: Hasher,
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Writes all internal proof nodes into the provided target.