Type Alias HashMap

Source
pub type HashMap<K, V> = HashMap<K, V, RandomState>;
Expand description

The HashMap type used in LDK.

Aliased Type§

pub struct HashMap<K, V> { /* private fields */ }

Trait Implementations§

Source§

impl<K, V> Readable for HashMap<K, V>
where K: Readable + Eq + Hash, V: MaybeReadable,

Source§

fn read<R: Read>(r: &mut R) -> Result<Self, DecodeError>

Reads a Self in from the given Read.
Source§

impl<K, V> Writeable for HashMap<K, V>
where K: Writeable + Eq + Hash, V: Writeable,

Source§

fn write<W: Writer>(&self, w: &mut W) -> Result<(), Error>

Writes self out to the given Writer.
Source§

fn encode(&self) -> Vec<u8>

Writes self out to a Vec<u8>.
Source§

fn serialized_length(&self) -> usize

Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length.