Trait miden_client::utils::Serializable
source · 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.
Object Safety§
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 AdviceInjectorNode
impl Serializable for AdviceInjectorNode
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for Instruction
impl Serializable for Instruction
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for Node
impl Serializable for Node
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,
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 + ?Sized,
source§impl Serializable for u8
impl Serializable for u8
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for u16
impl Serializable for u16
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for u32
impl Serializable for u32
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for u64
impl Serializable for u64
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for u128
impl Serializable for u128
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for ()
impl Serializable for ()
fn write_into<W>(&self, _target: &mut W)where
W: ByteWriter,
source§impl Serializable for usize
impl Serializable for usize
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for String
impl Serializable for String
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
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 ModuleImports
impl Serializable for ModuleImports
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for ProcReExport
impl Serializable for ProcReExport
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for ProcedureAst
impl Serializable for ProcedureAst
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for MaslLibrary
impl Serializable for MaslLibrary
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 LibraryNamespace
impl Serializable for LibraryNamespace
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 ProcedureId
impl Serializable for ProcedureId
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 SourceLocation
impl Serializable for SourceLocation
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 Kernel
impl Serializable for Kernel
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 RpxDigest
impl Serializable for RpxDigest
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for NodeIndex
impl Serializable for NodeIndex
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 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 Smt
impl Serializable for Smt
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for StoreNode
impl Serializable for StoreNode
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 AccountStorageDelta
impl Serializable for AccountStorageDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for StorageMapDelta
impl Serializable for StorageMapDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for AccountDelta
impl Serializable for AccountDelta
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for AccountVaultDelta
impl Serializable for AccountVaultDelta
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,
source§impl Serializable for BlockNoteTree
impl Serializable for BlockNoteTree
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
source§impl Serializable for Block
impl Serializable for Block
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 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 NoteOrigin
impl Serializable for NoteOrigin
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 InputNoteCommitment
impl Serializable for InputNoteCommitment
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 TraceLayout
impl Serializable for TraceLayout
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 StarkProof
impl Serializable for StarkProof
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.