Lines Matching refs:Segment
211 fn from_segments(segments: &[&Segment<'_>]) -> Option<Version> { in from_segments()
332 enum Segment<'a> { enum
337 impl Segment<'_> { impl
340 Segment::Binary(_) => (MODE_BINARY, 4), in get_header()
341 Segment::Numeric(_) => (MODE_NUMERIC, 4), in get_header()
349 Segment::Binary(_) => match v { in length_bits_count()
353 Segment::Numeric(_) => match v { in length_bits_count()
364 Segment::Binary(data) => data.len(), in character_count()
365 Segment::Numeric(data) => { in character_count()
386 Segment::Binary(data) => data.len() * 8, in total_size_bits()
387 Segment::Numeric(_) => { in total_size_bits()
407 segment: &'a Segment<'a>,
418 Segment::Binary(data) => { in next()
427 Segment::Numeric(data) => { in next()
482 fn new<'a, 'b>(segments: &[&Segment<'b>], data: &'a mut [u8]) -> Option<EncodedMsg<'a>> { in new()
539 fn add_segments(&mut self, segments: &[&Segment<'_>]) { in add_segments()
591 fn encode(&mut self, segments: &[&Segment<'_>]) { in encode()
952 match EncodedMsg::new(&[&Segment::Binary(&data_slice[0..data_len])], tmp_slice) { in drm_panic_qr_generate()
964 &Segment::Binary(url_cstr.as_bytes()), in drm_panic_qr_generate()
965 &Segment::Numeric(&data_slice[0..data_len]), in drm_panic_qr_generate()