Lines Matching refs:rest
317 let (v, rest) = <u32>::deserialize(data)?; in deserialize()
318 Ok((v != 0, rest)) in deserialize()
327 let (len, rest) = <u32>::deserialize(data)?; in deserialize()
329 if rest.len() < len { in deserialize()
334 buf.extend_from_slice(&rest[..len]); in deserialize()
335 Ok((buf, &rest[len..])) in deserialize()
348 let (v, rest) = <u32>::deserialize(data)?; in deserialize()
349 Ok((Self::try_from(v as i32).map_err(|_e| Error::InvalidEnumValue(v))?, rest)) in deserialize()
358 let (v, rest) = <u32>::deserialize(data)?; in deserialize()
359 Ok((Self::try_from(v as i32).map_err(|_e| Error::InvalidEnumValue(v))?, rest)) in deserialize()
368 let (v, rest) = <u32>::deserialize(data)?; in deserialize()
369 Ok((Self::try_from(v as i32).map_err(|_e| Error::InvalidEnumValue(v))?, rest)) in deserialize()
553 let (req, rest) = match cmd {
556 let (req, rest) = <$reqtyp>::deserialize(data)?;
557 ($reqenum::$cname(req), rest)
562 if !rest.is_empty() {
563 return Err(Error::ExcessData(rest.len()));
700 let (got, rest) = SetBootParamsRequest::deserialize(&data).unwrap(); in test_inner_serialize()
701 assert!(rest.is_empty()); in test_inner_serialize()
713 let (got, rest) = GetVersionResponse::deserialize(&data).unwrap(); in test_get_version_serialize()
714 assert!(rest.is_empty()); in test_get_version_serialize()