Home
last modified time | relevance | path

Searched refs:borrow_mut (Results 1 - 22 of 22) sorted by relevance

/third_party/rust/crates/serde/serde_derive_internals/src/
H A Dctxt.rs33 .borrow_mut() in error_spanned_by()
42 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error()
47 let mut errors = self.errors.borrow_mut().take().unwrap().into_iter(); in check()
/third_party/rust/crates/serde/serde_derive/src/internals/
H A Dctxt.rs33 .borrow_mut() in error_spanned_by()
42 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error()
47 let mut errors = self.errors.borrow_mut().take().unwrap().into_iter(); in check()
/third_party/rust/crates/lazycell/src/
H A Dlib.rs59 /// access to it, in which case `LazyCell::borrow_mut` may be used to mutate the
118 pub fn borrow_mut(&mut self) -> Option<&mut T> { in borrow_mut() functions
159 self.borrow_mut().unwrap() in borrow_mut_with()
189 return Ok(self.borrow_mut().unwrap()); in try_borrow_mut_with()
195 Ok(self.borrow_mut().unwrap()) in try_borrow_mut_with()
382 assert!(lazycell.borrow_mut().is_none()); in test_borrow_mut()
385 assert_eq!(lazycell.borrow_mut(), Some(&mut 1)); in test_borrow_mut()
387 *lazycell.borrow_mut().unwrap() = 2; in test_borrow_mut()
388 assert_eq!(lazycell.borrow_mut(), Some(&mut 2)); in test_borrow_mut()
392 assert!(lazycell.borrow_mut() in test_borrow_mut()
[all...]
/third_party/rust/crates/nom/fuzz/fuzz_targets/
H A Dfuzz_arithmetic.rs27 *l.borrow_mut() = 0; in reset()
33 *l.borrow_mut() += 1; in incr()
46 *l.borrow_mut() -= 1; in decr()
/third_party/rust/crates/clang-sys/src/
H A Dlink.rs215 LIBRARY.with(|l| *l.borrow_mut() = Some(library)); in load()
237 LIBRARY.with(|l| l.borrow_mut().clone()) in get_library()
244 LIBRARY.with(|l| mem::replace(&mut *l.borrow_mut(), library)) in set_library()
/third_party/rust/crates/env_logger/src/fmt/
H A Dmod.rs119 self.buf.borrow_mut().clear()
125 self.buf.borrow_mut().write(buf) in write()
129 self.buf.borrow_mut().flush() in flush()
/third_party/rust/crates/proc-macro-error/src/
H A Ddummy.rs139 let mut cell = old_dummy.borrow_mut(); in append_dummy()
/third_party/rust/crates/proc-macro-error/src/imp/
H A Dfallback.rs24 ERR_STORAGE.with(|storage| storage.borrow_mut().push(diag));
/third_party/rust/crates/regex/regex-syntax/src/ast/
H A Dparse.rs360 self.comments.borrow_mut().clear(); in reset()
361 self.stack_group.borrow_mut().clear(); in reset()
362 self.stack_class.borrow_mut().clear(); in reset()
428 let mut names = self.parser().capture_names.borrow_mut(); in add_capture_name()
556 self.parser().comments.borrow_mut().push(comment); in bump_space()
653 let mut stack = self.parser().stack_group.borrow_mut(); in push_or_add_alternation()
696 self.parser().stack_group.borrow_mut().push( in push_group()
723 let mut stack = self.parser().stack_group.borrow_mut(); in pop_group()
773 let mut stack = self.parser().stack_group.borrow_mut(); in pop_group_end()
823 .borrow_mut() in push_class_open()
[all...]
/third_party/rust/crates/syn/src/
H A Dlookahead.rs84 lookahead.comparisons.borrow_mut().push(display()); in peek_impl()
/third_party/rust/crates/cxx/gen/cmd/src/gen/
H A Dout.rs64 let content = &mut *self.content.borrow_mut(); in write_fmt()
/third_party/rust/crates/cxx/gen/src/
H A Dout.rs64 let content = &mut *self.content.borrow_mut(); in write_fmt()
/third_party/rust/crates/cxx/gen/lib/src/gen/
H A Dout.rs64 let content = &mut *self.content.borrow_mut(); in write_fmt()
/third_party/rust/crates/cxx/gen/build/src/gen/
H A Dout.rs64 let content = &mut *self.content.borrow_mut(); in write_fmt()
/third_party/rust/crates/clang-sys/build/
H A Dcommon.rs25 e.borrow_mut() in add_command_error()
/third_party/rust/crates/nix/src/sys/
H A Dtermios.rs263 let mut termios = self.inner.borrow_mut();
289 let mut termios = self.inner.borrow_mut();
309 let termios = *self.inner.borrow_mut();
/third_party/rust/crates/proc-macro2/src/
H A Dfallback.rs155 let mut cm = cm.borrow_mut(); in get_cursor()
612 Some(SOURCE_MAP.with(|cm| cm.borrow_mut().fileinfo_mut(*self).source_text(*self))) in source_text()
/third_party/rust/crates/serde/test_suite/tests/
H A Dtest_ser.rs846 let _reference = ref_cell.borrow_mut(); in test_cannot_serialize_mutably_borrowed_ref_cell()
/third_party/rust/crates/regex/src/
H A Ddfa.rs454 let mut cache = cache.borrow_mut(); in forward()
484 let mut cache = cache.borrow_mut(); in reverse()
515 let mut cache = cache.borrow_mut(); in forward_many()
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dtranslate.rs602 self.trans().stack.borrow_mut().push(frame); in push()
607 self.trans().stack.borrow_mut().pop() in pop()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs3359 *self.0.borrow_mut() += 1; in partial_eq()
3360 *other.0.borrow_mut() += 1; in partial_eq()
3376 *self.0.borrow_mut() += 1; in eq()
3377 *other.0.borrow_mut() += 1; in eq()
9116 *self.0.borrow_mut() += 1; in partial_eq()
9117 *other.0.borrow_mut() += 1; in partial_eq()
9133 *self.0.borrow_mut() += 1; in eq()
9134 *other.0.borrow_mut() += 1; in eq()
13278 let borrow = refcell.borrow_mut(); in test_refcell()
15172 fn borrow_mut( functions
22770 fn borrow_mut(&mut self) -> &mut [T] { borrow_mut() functions
38517 pub fn borrow_mut(&mut self) -> NodeRef<marker::Mut<'_>, K, V, Type> { borrow_mut() functions
51772 fn borrow_mut(&mut self) -> &mut T { borrow_mut() functions
[all...]
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dcontext.rs2249 .borrow_mut() in blocklisted_type_implements_trait()

Completed in 49 milliseconds