Skip to main content

fit_map_entries

Function fit_map_entries 

Source
pub fn fit_map_entries<K, V>(
    at: usize,
    value: Vec<MapEntry<K, V>>,
    bound: usize,
    behaviour: TryConstruct,
) -> Result<Narrowed<Vec<MapEntry<K, V>>>, WireError>
Expand description

A map held as its entries (XTypes 1.3 §7.5.1.3.6) that has been read whole, against the receiver’s bound, which counts entries.

A trim keeps the first bound entries, in the order the stream carried them.

§Errors

As fit_string.