Struct bitcoin_serialize::DefaultFormatter
source · pub struct DefaultFormatter<'a, T> { /* private fields */ }
Expand description
| If none of the specialized versions | above matched, default to calling member | function. |
| Default formatter. Serializes objects | as themselves. | | The vector/prevector serialization | code passes this to VectorFormatter | to enable reusing that logic. It shouldn’t | be needed elsewhere. |
Implementations§
source§impl<'a, T> DefaultFormatter<'a, T>
impl<'a, T> DefaultFormatter<'a, T>
pub fn ser<Stream>(s: &mut Stream, t: &T)
pub fn unser<Stream>(s: &mut Stream, t: &mut T)
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for DefaultFormatter<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for DefaultFormatter<'a, T>where T: Send,
impl<'a, T> Sync for DefaultFormatter<'a, T>where T: Sync,
impl<'a, T> Unpin for DefaultFormatter<'a, T>
impl<'a, T> !UnwindSafe for DefaultFormatter<'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