Struct bitcoin_serialize::Wrapper
source · pub struct Wrapper<'a, T> { /* private fields */ }
Expand description
| Simple wrapper class to serialize objects | using a formatter; used by Using(). |
Implementations§
source§impl<'a, T> Wrapper<'a, T>
impl<'a, T> Wrapper<'a, T>
pub fn new(obj: &'a T) -> Self
pub fn serialize<Formatter, Stream>(&self, s: &mut Stream)
pub fn unserialize<Formatter, Stream>(&mut self, s: &mut Stream)
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for Wrapper<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for Wrapper<'a, T>where T: Sync,
impl<'a, T> Sync for Wrapper<'a, T>where T: Sync,
impl<'a, T> Unpin for Wrapper<'a, T>
impl<'a, T> UnwindSafe for Wrapper<'a, T>where T: RefUnwindSafe,
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