Struct bitcoin_serialize::VectorFormatter
source · pub struct VectorFormatter<'a, T> { /* private fields */ }
Expand description
| Formatter to serialize/deserialize
| vector elements using another formatter
|
| Example:
|
| ———–
| @code
|
| struct X {
| std::vector<uint64_t> v;
| SERIALIZE_METHODS(X, obj) { READWRITE(Using<VectorFormatter
Implementations§
source§impl<'a, T> VectorFormatter<'a, T>
impl<'a, T> VectorFormatter<'a, T>
pub fn ser<Formatter, Stream, V>(&mut self, s: &mut Stream, v: &V)
pub fn unser<Formatter, Stream, V>(&mut self, s: &mut Stream, v: &mut V)
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for VectorFormatter<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for VectorFormatter<'a, T>where T: Send,
impl<'a, T> Sync for VectorFormatter<'a, T>where T: Sync,
impl<'a, T> Unpin for VectorFormatter<'a, T>
impl<'a, T> !UnwindSafe for VectorFormatter<'a, T>
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