Function x11rb_protocol::x11_utils::parse_list

source ยท
pub(crate) fn parse_list<T>(
    data: &[u8],
    list_length: usize,
) -> Result<(Vec<T>, &[u8]), ParseError>
where T: TryParse,
Expand description

Parse a list of objects from the given data.

This function parses a list of objects where the length of the list was specified externally. The wire format for list_length instances of T will be read from the given data.