Home
last modified time | relevance | path

Searched defs:String (Results 1 – 25 of 1540) sorted by relevance

12345678910>>...62

/third_party/rust/rust/tests/ui/borrowck/
Dor-patterns.rs4 fn or_pattern_moves_all(x: ((String, String),)) { in or_pattern_moves_all() argument
14 fn or_pattern_borrows_all(mut x: ((String, String),)) { in or_pattern_borrows_all() argument
25 fn or_pattern_borrows_all_mut(mut x: ((String, String),)) { in or_pattern_borrows_all_mut() argument
36 fn let_or_pattern_moves_all(x: ((String, String),)) { in let_or_pattern_moves_all() argument
44 fn let_or_pattern_borrows_all(mut x: ((String, String),)) { in let_or_pattern_borrows_all() argument
53 fn let_or_pattern_borrows_all_mut(mut x: ((String, String),)) { in let_or_pattern_borrows_all_mut() argument
Dmove-from-union-field-issue-66500.rs5 a: &'static String, variable
6 b: &'static mut String, variable
7 c: *const String, constant
11 unsafe fn move_ref(u: Pointers) -> String { in move_ref()
15 unsafe fn move_ref_mut(u: Pointers) -> String { in move_ref_mut()
19 unsafe fn move_ptr(u: Pointers) -> String { in move_ptr()
23 unsafe fn move_ptr_mut(u: Pointers) -> String { in move_ptr_mut()
/third_party/rust/rust/compiler/rustc_ast_pretty/src/pprust/
Dmod.rs13 pub fn nonterminal_to_string(nt: &Nonterminal) -> String { in nonterminal_to_string()
27 pub fn ty_to_string(ty: &ast::Ty) -> String { in ty_to_string()
31 pub fn bounds_to_string(bounds: &[ast::GenericBound]) -> String { in bounds_to_string()
35 pub fn where_bound_predicate_to_string(where_bound_predicate: &ast::WhereBoundPredicate) -> String { in where_bound_predicate_to_string()
39 pub fn pat_to_string(pat: &ast::Pat) -> String { in pat_to_string()
43 pub fn expr_to_string(e: &ast::Expr) -> String { in expr_to_string()
47 pub fn tt_to_string(tt: &TokenTree) -> String { in tt_to_string()
51 pub fn tts_to_string(tokens: &TokenStream) -> String { in tts_to_string()
55 pub fn item_to_string(i: &ast::Item) -> String { in item_to_string()
59 pub fn path_to_string(p: &ast::Path) -> String { in path_to_string()
[all …]
/third_party/rust/rust/src/librustdoc/
Dtheme.rs20 fn get_string(iter: &mut Peekable<Chars<'_>>, string_start: char, buffer: &mut String) { in get_string()
36 buffer: &mut String, in get_inside_paren()
65 fn handle_common_chars(c: char, buffer: &mut String, iter: &mut Peekable<Chars<'_>>) { in handle_common_chars()
81 fn parse_property_name(iter: &mut Peekable<Chars<'_>>) -> Result<Option<String>, String> { in parse_property_name()
100 fn parse_property_value(iter: &mut Peekable<Chars<'_>>) -> (String, bool) { in parse_property_value()
121 selector: String, in parse_rules()
123 paths: &mut FxHashMap<String, CssPath>, in parse_rules()
124 ) -> Result<(), String> { in parse_rules() argument
181 paths: &mut FxHashMap<String, CssPath>, in parse_selectors()
182 ) -> Result<(), String> { in parse_selectors() argument
[all …]
Dexternalfiles.rs24 in_header: &[String], in load()
25 before_content: &[String], in load()
26 after_content: &[String], in load()
27 md_before_content: &[String], in load()
28 md_after_content: &[String], in load()
81 ) -> Result<String, LoadStringError> { in load_string()
99 fn load_external_files(names: &[String], diag: &rustc_errors::Handler) -> Option<String> { in load_external_files()
/third_party/rust/rust/src/tools/build_helper/src/
Dgit.rs5 fn output_result(cmd: &mut Command) -> Result<String, String> { in output_result() argument
30 pub fn get_rust_lang_rust_remote(git_dir: Option<&Path>) -> Result<String, String> { in get_rust_lang_rust_remote() argument
48 pub fn rev_exists(rev: &str, git_dir: Option<&Path>) -> Result<bool, String> { in rev_exists() argument
79 pub fn updated_master_branch(git_dir: Option<&Path>) -> Result<String, String> { in updated_master_branch() argument
96 ) -> Result<Option<Vec<String>>, String> { in get_git_modified_files()
121 pub fn get_git_untracked_files(git_dir: Option<&Path>) -> Result<Option<Vec<String>>, String> { in get_git_untracked_files()
/third_party/rust/rust/tests/ui/traits/
Dissue-9394-inherited-calls.rs4 fn foo(&self) -> String; in foo()
5 fn foo1(&self) -> String; in foo1()
6 fn foo2(&self) -> String{ in foo2()
12 fn baz(&self) -> String; in baz()
16 fn root(&self) -> String; in root()
20 fn bar(&self) -> String; in bar()
26 fn foo(&self) -> String{ in foo()
29 fn foo1(&self) -> String{ in foo1()
36 fn baz(&self) -> String{ in baz()
42 fn root(&self) -> String{ in root()
[all …]
Dto-str.rs6 fn to_string_(&self) -> String; in to_string_()
10 fn to_string_(&self) -> String { self.to_string() } in to_string_()
14 fn to_string_(&self) -> String { in to_string_()
27 fn indirect<T:to_str>(x: T) -> String { in main()
32 fn indirect2<T:to_str>(x: T) -> String { in main()
Dgeneric.rs7 fn to_string_(&self) -> String; in to_string_()
10 fn to_string_(&self) -> String { self.to_string() } in to_string_()
12 impl to_str for String { implementation
13 fn to_string_(&self) -> String { self.clone() } in to_string_()
16 fn to_string_(&self) -> String { "()".to_string() } in to_string_()
32 fn foo<U, T: map<U>>(x: T) -> Vec<String> { in foo()
35 fn bar<U:to_str,T:map<U>>(x: T) -> Vec<String> { in bar()
/third_party/rust/rust/tests/rustdoc/
Ddecl-trailing-whitespace.rs12 self: Option<String>, in poll_write()
13 cx: &mut Option<String>, in poll_write()
17 self: Option<String>, in poll_flush()
21 self: Option<String>, in poll_close()
22 cx: &mut Option<String>, in poll_close()
26 self: Option<String>, in poll_write_vectored()
27 cx: &mut Option<String>, in poll_write_vectored()
/third_party/rust/crates/clap/clap_complete/src/shells/
Dbash.rs12 fn file_name(&self, name: &str) -> String { in file_name()
75 fn all_subcommands(cmd: &Command) -> String { in all_subcommands()
81 subcmds: &mut Vec<(String, String, String)>, in all_subcommands() argument
123 fn subcommand_details(cmd: &Command) -> String { in subcommand_details()
160 fn option_details_for_path(cmd: &Command, path: &str) -> String { in option_details_for_path()
197 fn vals_for(o: &Arg) -> String { in vals_for()
214 fn all_options_for_path(cmd: &Command, path: &str) -> String { in all_options_for_path()
/third_party/rust/rust/tests/ui/
Dissue-2804.rs14 String(String), enumerator
29 fn lookup(table: Object, key: String, default: String) -> String in lookup()
45 fn add_interface(_store: isize, managed_ip: String, data: Json) -> (String, object) in add_interface()
63 fn add_interfaces(store: isize, managed_ip: String, device: HashMap<String, Json>) in add_interfaces()
64 -> Vec<(String, object)> { in add_interfaces()
Dbare-fn-implements-fn-mut.rs13 fn call_g<G:FnMut(String,String) -> String>(mut g: G, x: String, y: String) in call_g()
14 -> String { in call_g()
18 fn g(mut x: String, y: String) -> String { in g()
/third_party/rust/crates/cxx/src/symbols/
Drust_string.rs11 unsafe extern "C" fn string_new(this: &mut MaybeUninit<String>) { in string_new()
18 unsafe extern "C" fn string_clone(this: &mut MaybeUninit<String>, other: &String) { in string_clone()
26 this: &mut MaybeUninit<String>, in string_from_utf8()
44 this: &mut MaybeUninit<String>, in string_from_utf8_lossy()
56 this: &mut MaybeUninit<String>, in string_from_utf16()
73 this: &mut MaybeUninit<String>, in string_from_utf16_lossy()
84 unsafe extern "C" fn string_drop(this: &mut ManuallyDrop<String>) { in string_drop()
104 unsafe extern "C" fn string_reserve_additional(this: &mut String, additional: usize) { in string_reserve_additional()
109 unsafe extern "C" fn string_reserve_total(this: &mut String, new_cap: usize) { in string_reserve_total()
/third_party/rust/rust/library/alloc/src/
Dstring.rs365 pub struct String { struct
369 /// A possible error value when converting a `String` from a UTF-8 byte vector. argument
430 impl String { implementation
498 pub fn with_capacity(capacity: usize) -> String { in with_capacity()
508 pub fn from_str(_: &str) -> String { in from_str()
570 pub fn from_utf8(vec: Vec<u8>) -> Result<String, FromUtf8Error> { in from_utf8()
680 pub fn from_utf16(v: &[u16]) -> Result<String, FromUtf16Error> { in from_utf16()
722 pub fn from_utf16_lossy(v: &[u16]) -> String { in from_utf16_lossy()
810 pub unsafe fn from_raw_parts(buf: *mut u8, length: usize, capacity: usize) -> String { in from_raw_parts()
845 pub unsafe fn from_utf8_unchecked(bytes: Vec<u8>) -> String { in from_utf8_unchecked()
[all …]
/third_party/rust/rust/compiler/rustc_codegen_ssa/src/debuginfo/
Dtype_names.rs37 ) -> String { in compute_debuginfo_type_name()
52 output: &mut String, in push_debuginfo_type_name()
438 fn msvc_enum_fallback<'tcx>( in push_debuginfo_type_name()
441 output: &mut String, in push_debuginfo_type_name()
452 fn push_auto_trait_separator(cpp_like_debuginfo: bool, output: &mut String) { in push_debuginfo_type_name()
460 fn pop_auto_trait_separator(output: &mut String) { in push_debuginfo_type_name()
494 ) -> String { in compute_debuginfo_vtable_name()
539 pub fn push_item_name(tcx: TyCtxt<'_>, def_id: DefId, qualified: bool, output: &mut String) { in push_item_name()
565 output: &mut String, in push_disambiguated_special_name()
578 output: &mut String, in push_unqualified_item_name()
[all …]
/third_party/rust/rust/tests/ui/hashmap/
Dhashmap-memory.rs15 pub fn map(filename: String, mut emit: map_reduce::putter) { in map()
31 fn start_mappers(ctrl: Sender<ctrl_proto>, inputs: Vec<String>) { in start_mappers()
39 fn map_task(ctrl: Sender<ctrl_proto>, input: String) { in map_task()
42 fn emit(im: &mut HashMap<String, isize>, in map_task()
43 ctrl: Sender<ctrl_proto>, key: String, in map_task()
44 _val: String) { in map_task()
62 pub fn map_reduce(inputs: Vec<String>) { in map_reduce()
/third_party/rust/rust/src/tools/rust-analyzer/crates/project-model/src/
Drustc_cfg.rs13 extra_env: &FxHashMap<String, String>, in get() argument
46 extra_env: &FxHashMap<String, String>, in get_rust_cfgs() argument
47 ) -> Result<String> { in get_rust_cfgs()
/third_party/flatbuffers/include/flatbuffers/
Dstring.h25 struct String : public Vector<char> { struct
42 bool operator<(const String &o) const { argument
/third_party/skia/third_party/externals/tint/src/
Dintrinsic_table.inl50 std::string Bool::String(MatchState&) const { function in Bool
77 std::string F32::String(MatchState&) const { function in F32
104 std::string I32::String(MatchState&) const { function in I32
131 std::string U32::String(MatchState&) const { function in U32
163 std::string Vec2::String(MatchState& state) const { function in Vec2
196 std::string Vec3::String(MatchState& state) const { function in Vec3
229 std::string Vec4::String(MatchState& state) const { function in Vec4
267 std::string Vec::String(MatchState& state) const { function in Vec
313 std::string Mat::String(MatchState& state) const { function in Mat
360 std::string Ptr::String(MatchState& state) const { function in Ptr
[all …]
/third_party/rust/rust/tests/ui/suggestions/
Dmut-ref-reassignment.rs1 fn suggestion(opt: &mut Option<String>) { in suggestion()
5 fn no_suggestion(opt: &mut Result<String, ()>) { in no_suggestion()
9 fn suggestion2(opt: &mut Option<String>) { in suggestion2()
13 fn no_suggestion2(opt: &mut Option<String>) { in no_suggestion2()
Dreturn-bindings.rs6 fn b(opt_str: Option<String>) { in b()
19 fn d(opt_str: Option<String>) { in d()
27 fn d2(opt_str: Option<String>) { in d2()
35 fn e(opt_str: Option<String>) { in e()
43 fn e2(opt_str: Option<String>) { in e2()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-completion/src/
Dsnippet.rs134 prefix_triggers: &[String], in new()
135 postfix_triggers: &[String], in new()
136 snippet: &[String], in new()
138 requires: &[String], in new()
161 pub fn snippet(&self) -> String { in snippet()
165 pub fn postfix_snippet(&self, receiver: &str) -> String { in postfix_snippet()
196 snippet: &[String], in validate_snippet()
198 requires: &[String], in validate_snippet()
/third_party/libexif/libexif/
Di18n.h31 # define _(String) dgettext (GETTEXT_PACKAGE, String) argument
33 # define N_(String) gettext_noop (String) argument
35 # define N_(String) (String) argument
38 # define textdomain(String) (String) argument
39 # define gettext(String) (String) argument
50 # define _(String) (String) argument
51 # define N_(String) (String) argument
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DLikelySubtagsBuilder.java132 private Aliases(ImmutableSortedMap<String, String> toCanonical) { in Aliases()
191 Map<String, Map<String, Map<String, LSR>>> languages, in writeLsrTable()
204 … Trie.Span languageSpan, Map<String, Map<String, LSR>> scripts, Indexer<LSR, Integer> lsrToIndex) { in writeScripts()
229 … Trie.Span languageOrScriptSpan, Map<String, LSR> regions, Indexer<LSR, Integer> lsrToIndex) { in writeRegions()
312 Map<String, Map<String, Map<String, LSR>>> langTable, LSR key, LSR newValue) { in set()
316 private static void set(Map<String, Map<String, Map<String, LSR>>> langTable, in set()
323 … private static <T> Map<String, T> getSubtable(Map<String, Map<String, T>> table, String subtag) { in getSubtable()

12345678910>>...62