fn write_sub_path_trait_truncated(&mut self, path: &ast::Path) {
        let sub_paths = self.process_path_prefixes(path);
        let len = sub_paths.len();
        if len <= 1 {
            return;
        }
        let sub_paths = sub_paths.slice_to(len-1);

        // write the trait part of the sub-path
        let (ref span, ref qualname) = sub_paths[len-2];
        self.fmt.sub_type_ref_str(path.span,
                                  *span,
                                  &qualname[]);

        // write the other sub-paths
        if len <= 2 {
            return;
        }
        let sub_paths = &sub_paths[..(len-2)];
        for &(ref span, ref qualname) in sub_paths.iter() {
            self.fmt.sub_mod_ref_str(path.span,
                                     *span,
                                     &qualname[],
                                     self.cur_scope);
        }
    }
// As write_sub_paths, but expects a path of the form module_path::trait::method
// Where trait could actually be a struct too.
As write_sub_paths, but expects a path of the form module_path::trait::method
Where trait could actually be a struct too.
As write_sub_paths but expects a path of the form module_path :: trait :: method Where trait could actually be a struct too .
fn write_sub_path_trait_truncated(&mut self, path: &ast::Path) {
        let sub_paths = self.process_path_prefixes(path);
        let len = sub_paths.len();
        if len <= 1 {
            return;
        }
        let sub_paths = sub_paths.slice_to(len-1);
        // write the trait part of the sub-path
        let (ref span, ref qualname) = sub_paths[len-2];
        self.fmt.sub_type_ref_str(path.span,
                                  *span,
                                  &qualname[]);
        // write the other sub-paths
        if len <= 2 {
            return;
        }
        let sub_paths = &sub_paths[..(len-2)];
        for &(ref span, ref qualname) in sub_paths.iter() {
            self.fmt.sub_mod_ref_str(path.span,
                                     *span,
                                     &qualname[],
                                     self.cur_scope);
        }
    }
fn write_sub_path_trait_truncated ( & mut self , path : & ast :: Path ) { let sub_paths = self . process_path_prefixes ( path ) ; let len = sub_paths . len ( ) ; if len <= 1 { return ; } let sub_paths = sub_paths . slice_to ( len - 1 ) ; // write the trait part of the sub-path let ( ref span , ref qualname ) = sub_paths [ len - 2 ] ; self . fmt . sub_type_ref_str ( path . span , * span , & qualname [ ] ) ; // write the other sub-paths if len <= 2 { return ; } let sub_paths = & sub_paths [ .. ( len - 2 ) ] ; for & ( ref span , ref qualname ) in sub_paths . iter ( ) { self . fmt . sub_mod_ref_str ( path . span , * span , & qualname [ ] , self . cur_scope ) ; } }
As write_sub_paths, but expects a path of the form module_path::trait::method
Where trait could actually be a struct too.
As write_sub_paths but expects a path of the form module_path :: trait :: method Where trait could actually be a struct too .
&mut self
path
&ast::Path
&mut self
path
&ast::Path