Struct scale_info::PortableRegistry
source · pub struct PortableRegistry { /* private fields */ }
Expand description
A read-only registry containing types in their portable form for serialization.
Implementations§
Trait Implementations§
source§impl Clone for PortableRegistry
impl Clone for PortableRegistry
source§fn clone(&self) -> PortableRegistry
fn clone(&self) -> PortableRegistry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PortableRegistry
impl Debug for PortableRegistry
source§impl Decode for PortableRegistry
impl Decode for PortableRegistry
source§impl Encode for PortableRegistry
impl Encode for PortableRegistry
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more