Struct bitcoin_serialize::SizeComputer
source · pub struct SizeComputer { /* private fields */ }
Expand description
| ::GetSerializeSize implementations | | Computing the serialized size of objects | is done through a special stream object | of type CSizeComputer, which only records | the number of bytes written to it. | | If your Serialize or SerializationOp | method has non-trivial overhead for | serialization, it may be worthwhile | to implement a specialized version | for | | CSizeComputer, which uses the s.seek() | method to record bytes that would be | written instead. |
Implementations§
source§impl SizeComputer
impl SizeComputer
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SizeComputer
impl Send for SizeComputer
impl Sync for SizeComputer
impl Unpin for SizeComputer
impl UnwindSafe for SizeComputer
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more