pub type OptionCodeSet = OptionCodeMap<()>;
Expand description

Represents a set of OptionCodes as an array of booleans.

Aliased Type§

struct OptionCodeSet { /* private fields */ }

Implementations§

source§

impl OptionCodeSet

source

pub fn insert(&mut self, option_code: OptionCode) -> bool

Inserts option_code into the set, returning whether it was newly added.

Trait Implementations§

source§

impl FromIterator<OptionCode> for OptionCodeSet

source§

fn from_iter<T: IntoIterator<Item = OptionCode>>(iter: T) -> Self

Creates a value from an iterator. Read more