Home
last modified time | relevance | path

Searched refs:borrow_mut (Results 1 – 25 of 32) sorted by relevance

12

/third_party/rust/crates/serde/serde_derive/src/internals/
Dctxt.rs34 .borrow_mut() in error_spanned_by()
43 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error()
48 let errors = self.errors.borrow_mut().take().unwrap(); in check()
/third_party/rust/crates/lazycell/src/
Dlib.rs118 pub fn borrow_mut(&mut self) -> Option<&mut T> { in borrow_mut() method
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().is_none()); in test_borrow_mut()
/third_party/rust/crates/nom/fuzz/fuzz_targets/
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/regex/src/
Dpool.rs303 pool.get().value().borrow_mut().push('x'); in thread_owner_optimization()
309 v.borrow_mut().push('y'); in thread_owner_optimization()
316 v.borrow_mut().push('z'); in thread_owner_optimization()
Dbacktrack.rs93 let mut cache = cache.borrow_mut(); in exec()
Dpikevm.rs98 let mut cache = cache.borrow_mut(); in exec()
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/cxx/gen/build/src/
Dcfg.rs451 .borrow_mut() in deref()
463 CONST_DEREFS.with(|derefs| derefs.borrow_mut().remove(&self.handle())); in deref_mut()
491 CONST_DEREFS.with(|derefs| derefs.borrow_mut().remove(&self.handle())); in drop()
/third_party/rust/crates/clang-sys/src/
Dlink.rs215 LIBRARY.with(|l| *l.borrow_mut() = Some(library));
237 LIBRARY.with(|l| l.borrow_mut().clone())
244 LIBRARY.with(|l| mem::replace(&mut *l.borrow_mut(), library))
/third_party/rust/crates/signal-hook/src/iterator/
Dbackend.rs436 let iter = signals.borrow_mut().pending(); in new()
460 while !self.signals.borrow_mut().handle.is_closed() { in poll_signal()
465 match self.signals.borrow_mut().poll_pending(has_signals) { in poll_signal()
/third_party/rust/crates/env_logger/src/fmt/
Dmod.rs119 self.buf.borrow_mut().clear() in 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/imp/
Dfallback.rs24 ERR_STORAGE.with(|storage| storage.borrow_mut().push(diag)); in emit_diagnostic()
/third_party/rust/crates/proc-macro-error/src/
Ddummy.rs139 let mut cell = old_dummy.borrow_mut(); in append_dummy()
/third_party/rust/crates/tracing/examples/examples/sloggish/
Dsloggish_subscriber.rs55 current.borrow_mut().push(span); in enter()
61 let _ = current.borrow_mut().pop(); in exit()
/third_party/rust/crates/env_logger/src/fmt/writer/termcolor/
Dextern_impl.rs436 .borrow_mut() in write_fmt()
442 let reset = self.style.buf.borrow_mut().reset().map_err(|_| fmt::Error); in write_fmt()
/third_party/rust/crates/lazycell/
DCHANGELOG.md27 * add note regarding LazyCell::borrow_mut ([9d634d1f](https://github.com/indiv0/lazycell/commit/9…
59 * add LazyCell::borrow_mut method ([fd419dea](https://github.com/indiv0/lazycell/commit/fd419dea9…
/third_party/rust/crates/syn/src/
Dlookahead.rs84 lookahead.comparisons.borrow_mut().push(display()); in peek_impl()
/third_party/rust/crates/tracing/tracing-log/src/
Dtrace_logger.rs276 let mut current = current.borrow_mut(); in enter()
328 let mut current = current.borrow_mut(); in exit()
Dinterest_cache.rs163 let mut state = state.borrow_mut(); in try_cache()
/third_party/rust/crates/regex/regex-syntax/src/ast/
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/tracing/tracing-subscriber/src/filter/env/
Dmod.rs566 self.scope.get_or_default().borrow_mut().push(span.level()); in on_enter()
577 self.scope.get_or_default().borrow_mut().pop(); in on_exit()
/third_party/rust/crates/tracing/tracing-subscriber/src/registry/
Dsharded.rs293 .borrow_mut() in enter()
302 if spans.borrow_mut().pop(id) { in exit()
/third_party/rust/crates/cxx/gen/src/
Dout.rs64 let content = &mut *self.content.borrow_mut(); in write_fmt()
/third_party/rust/crates/nix/src/sys/
Dtermios.rs263 let mut termios = self.inner.borrow_mut(); in get_libc_termios()
289 let mut termios = self.inner.borrow_mut(); in get_libc_termios_mut()
309 let termios = *self.inner.borrow_mut(); in update_wrapper()
/third_party/rust/crates/clang-sys/build/
Dcommon.rs25 e.borrow_mut() in add_command_error()

12