@@ -18,8 +18,10 @@ pub const CMP_MAX: [&str; 3] = ["core", "cmp", "max"];
18
18
pub const CMP_MIN : [ & str ; 3 ] = [ "core" , "cmp" , "min" ] ;
19
19
pub const COW : [ & str ; 3 ] = [ "alloc" , "borrow" , "Cow" ] ;
20
20
pub const CSTRING : [ & str ; 4 ] = [ "std" , "ffi" , "c_str" , "CString" ] ;
21
+ pub const CSTRING_AS_C_STR : [ & str ; 5 ] = [ "std" , "ffi" , "c_str" , "CString" , "as_c_str" ] ;
21
22
pub const DEFAULT_TRAIT : [ & str ; 3 ] = [ "core" , "default" , "Default" ] ;
22
23
pub const DEFAULT_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "default" , "Default" , "default" ] ;
24
+ pub const DEREF_MUT_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "DerefMut" , "deref_mut" ] ;
23
25
pub const DEREF_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "Deref" , "deref" ] ;
24
26
pub const DISPLAY_FMT_METHOD : [ & str ; 4 ] = [ "core" , "fmt" , "Display" , "fmt" ] ;
25
27
pub const DOUBLE_ENDED_ITERATOR : [ & str ; 4 ] = [ "core" , "iter" , "traits" , "DoubleEndedIterator" ] ;
@@ -62,10 +64,12 @@ pub const OPTION_NONE: [&str; 4] = ["core", "option", "Option", "None"];
62
64
pub const OPTION_SOME : [ & str ; 4 ] = [ "core" , "option" , "Option" , "Some" ] ;
63
65
pub const ORD : [ & str ; 3 ] = [ "core" , "cmp" , "Ord" ] ;
64
66
pub const OS_STRING : [ & str ; 4 ] = [ "std" , "ffi" , "os_str" , "OsString" ] ;
67
+ pub const OS_STRING_AS_OS_STR : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsString" , "as_os_str" ] ;
65
68
pub const OS_STR_TO_OS_STRING : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsStr" , "to_os_string" ] ;
66
69
pub const PARTIAL_ORD : [ & str ; 3 ] = [ "core" , "cmp" , "PartialOrd" ] ;
67
70
pub const PATH : [ & str ; 3 ] = [ "std" , "path" , "Path" ] ;
68
71
pub const PATH_BUF : [ & str ; 3 ] = [ "std" , "path" , "PathBuf" ] ;
72
+ pub const PATH_BUF_AS_PATH : [ & str ; 4 ] = [ "std" , "path" , "PathBuf" , "as_path" ] ;
69
73
pub const PATH_TO_PATH_BUF : [ & str ; 4 ] = [ "std" , "path" , "Path" , "to_path_buf" ] ;
70
74
pub const PTR_NULL : [ & str ; 2 ] = [ "ptr" , "null" ] ;
71
75
pub const PTR_NULL_MUT : [ & str ; 2 ] = [ "ptr" , "null_mut" ] ;
@@ -104,6 +108,8 @@ pub const STD_CONVERT_IDENTITY: [&str; 3] = ["std", "convert", "identity"];
104
108
pub const STD_MEM_TRANSMUTE : [ & str ; 3 ] = [ "std" , "mem" , "transmute" ] ;
105
109
pub const STD_PTR_NULL : [ & str ; 3 ] = [ "std" , "ptr" , "null" ] ;
106
110
pub const STRING : [ & str ; 3 ] = [ "alloc" , "string" , "String" ] ;
111
+ pub const STRING_AS_MUT_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "as_mut_str" ] ;
112
+ pub const STRING_AS_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "as_str" ] ;
107
113
pub const SYNTAX_CONTEXT : [ & str ; 3 ] = [ "syntax_pos" , "hygiene" , "SyntaxContext" ] ;
108
114
pub const TO_OWNED : [ & str ; 3 ] = [ "alloc" , "borrow" , "ToOwned" ] ;
109
115
pub const TO_OWNED_METHOD : [ & str ; 4 ] = [ "alloc" , "borrow" , "ToOwned" , "to_owned" ] ;
@@ -113,6 +119,8 @@ pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
113
119
pub const TRY_FROM_ERROR : [ & str ; 4 ] = [ "std" , "ops" , "Try" , "from_error" ] ;
114
120
pub const TRY_INTO_RESULT : [ & str ; 4 ] = [ "std" , "ops" , "Try" , "into_result" ] ;
115
121
pub const VEC : [ & str ; 3 ] = [ "alloc" , "vec" , "Vec" ] ;
122
+ pub const VEC_AS_MUT_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_mut_slice" ] ;
123
+ pub const VEC_AS_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_slice" ] ;
116
124
pub const VEC_DEQUE : [ & str ; 4 ] = [ "alloc" , "collections" , "vec_deque" , "VecDeque" ] ;
117
125
pub const VEC_FROM_ELEM : [ & str ; 3 ] = [ "alloc" , "vec" , "from_elem" ] ;
118
126
pub const WEAK_ARC : [ & str ; 3 ] = [ "alloc" , "sync" , "Weak" ] ;
0 commit comments