Type Alias HashSet

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

The HashSet type used in LDK.

Aliased Type§

pub struct HashSet<K> { /* private fields */ }

Trait Implementations§

Source§

impl<T> Readable for HashSet<T>
where T: Readable + Eq + Hash,

Source§

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

Reads a Self in from the given Read.
Source§

impl<T> Writeable for HashSet<T>
where T: Writeable + Eq + Hash,

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.