Struct bitcoin_serialize::CustomUintFormatter
source · pub struct CustomUintFormatter<'a, T, const Bytes: i32, const BigEndian: bool = false>where
If<{ _ }>: True,{
pub item: &'a mut T,
}
Expand description
| Serialization wrapper class for custom | integers and enums. | | It permits specifying the serialized | size (1 to 8 bytes) and endianness. | | Use the big endian mode for values that | are stored in memory in native byte order, | but serialized in big endian notation. | This is only intended to implement serializers | that are compatible with existing formats, | and its use is not recommended for new | data structures. |
Fields§
§item: &'a mut T
Implementations§
Auto Trait Implementations§
impl<'a, T, const Bytes: i32, const BigEndian: bool> RefUnwindSafe for CustomUintFormatter<'a, T, Bytes, BigEndian>where T: RefUnwindSafe,
impl<'a, T, const Bytes: i32, const BigEndian: bool> Send for CustomUintFormatter<'a, T, Bytes, BigEndian>where T: Send,
impl<'a, T, const Bytes: i32, const BigEndian: bool> Sync for CustomUintFormatter<'a, T, Bytes, BigEndian>where T: Sync,
impl<'a, T, const Bytes: i32, const BigEndian: bool> Unpin for CustomUintFormatter<'a, T, Bytes, BigEndian>
impl<'a, T, const Bytes: i32, const BigEndian: bool = false> !UnwindSafe for CustomUintFormatter<'a, T, Bytes, BigEndian>
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