Lines Matching refs:a
159 impl<'a, T: AsRef<[u8]> + ?Sized> Ipv6Option<&'a T> {
165 pub fn data(&self) -> &'a [u8] { in data()
191 impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> Ipv6Option<&'a mut T> {
204 impl<'a, T: AsRef<[u8]> + ?Sized> fmt::Display for Ipv6Option<&'a T> {
220 pub enum Repr<'a> {
226 data: &'a [u8],
230 impl<'a> Repr<'a> {
232 pub fn parse<T>(opt: &Ipv6Option<&'a T>) -> Result<Repr<'a>> in parse()
257 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]> + ?Sized>(&self, opt: &mut Ipv6Option<&'a mut T>) { in emit()
284 pub struct Ipv6OptionsIterator<'a> {
287 data: &'a [u8],
291 impl<'a> Ipv6OptionsIterator<'a> {
299 pub fn new(data: &'a [u8], length: usize) -> Ipv6OptionsIterator<'a> { in new() argument
310 impl<'a> Iterator for Ipv6OptionsIterator<'a> {
311 type Item = Result<Repr<'a>>;
341 impl<'a> fmt::Display for Repr<'a> {