fn parse_single_component<'b>(&self, comp: &'b [u8]) -> Option<Component<'b>> {
        match comp {
            b"." if self.prefix_verbatim() => Some(Component::CurDir),
            b"." => None, // . components are normalized away, except at
                          // the beginning of a path, which is treated
                          // separately via `include_cur_dir`
            b".." => Some(Component::ParentDir),
            b"" => None,
            _ => Some(Component::Normal(unsafe { u8_slice_as_os_str(comp) })),
        }
    }
// parse a given byte sequence into the corresponding path component
parse a given byte sequence into the corresponding path component
parse a given byte sequence into the corresponding path component
fn parse_single_component<'b>(&self, comp: &'b [u8]) -> Option<Component<'b>> {
        match comp {
            b"." if self.prefix_verbatim() => Some(Component::CurDir),
            b"." => None, // . components are normalized away, except at
                          // the beginning of a path, which is treated
                          // separately via `include_cur_dir`
            b".." => Some(Component::ParentDir),
            b"" => None,
            _ => Some(Component::Normal(unsafe { u8_slice_as_os_str(comp) })),
        }
    }
fn parse_single_component < ' b > ( & self , comp : & ' b [ u8 ] ) -> Option < Component < ' b > > { match comp { b" " if self . prefix_verbatim ( ) => Some ( Component :: CurDir ) , b" " => None , // . components are normalized away, except at // the beginning of a path, which is treated // separately via `include_cur_dir` b" " => Some ( Component :: ParentDir ) , b" " => None , _ => Some ( Component :: Normal ( unsafe { u8_slice_as_os_str ( comp ) } ) ) , } }
parse a given byte sequence into the corresponding path component
parse a given byte sequence into the corresponding path component
&self
comp
&'b [u8]
&self
comp
&'b [u8]