Home
last modified time | relevance | path

Searched refs:get_mut (Results 1 - 24 of 24) sorted by relevance

/third_party/rust/crates/once_cell/src/
H A Dlib.rs420 match (self.get_mut(), source.get()) { in clone_from()
474 /// *cell.get_mut().unwrap() = 93;
478 pub fn get_mut(&mut self) -> Option<&mut T> { in get_mut() functions
766 Self::get_mut(this).unwrap_or_else(|| unreachable!()) in force_mut()
795 /// assert_eq!(Lazy::get_mut(&mut lazy), None);
797 /// assert_eq!(Lazy::get_mut(&mut lazy), Some(&mut 92));
799 pub fn get_mut(this: &mut Lazy<T, F>) -> Option<&mut T> { in get_mut() functions
800 this.cell.get_mut() in get_mut()
814 self.cell.get_mut().unwrap_or_else(|| unreachable!()) in deref_mut()
892 match (self.get_mut(), sourc in clone_from()
984 pub fn get_mut(&mut self) -> Option<&mut T> { get_mut() functions
1327 pub fn get_mut(this: &mut Lazy<T, F>) -> Option<&mut T> { get_mut() functions
[all...]
H A Dimp_cs.rs70 pub(crate) fn get_mut(&mut self) -> Option<&mut T> {
71 self.value.get_mut().get_mut()
H A Dimp_pl.rs109 pub(crate) fn get_mut(&mut self) -> Option<&mut T> {
H A Dimp_std.rs117 pub(crate) fn get_mut(&mut self) -> Option<&mut T> {
/third_party/rust/crates/cxx/gen/cmd/src/gen/
H A Dout.rs48 self.content.get_mut().next_section(); in next_section()
52 self.content.get_mut().begin_block(block); in begin_block()
56 self.content.get_mut().end_block(block); in end_block()
60 self.content.get_mut().set_namespace(namespace); in set_namespace()
72 let content = &self.content.get_mut().bytes; in content()
93 self.content.get_mut().flush(); in flush()
/third_party/rust/crates/cxx/gen/src/
H A Dout.rs48 self.content.get_mut().next_section(); in next_section()
52 self.content.get_mut().begin_block(block); in begin_block()
56 self.content.get_mut().end_block(block); in end_block()
60 self.content.get_mut().set_namespace(namespace); in set_namespace()
72 let content = &self.content.get_mut().bytes; in content()
93 self.content.get_mut().flush(); in flush()
/third_party/rust/crates/cxx/gen/lib/src/gen/
H A Dout.rs48 self.content.get_mut().next_section(); in next_section()
52 self.content.get_mut().begin_block(block); in begin_block()
56 self.content.get_mut().end_block(block); in end_block()
60 self.content.get_mut().set_namespace(namespace); in set_namespace()
72 let content = &self.content.get_mut().bytes; in content()
93 self.content.get_mut().flush(); in flush()
/third_party/rust/crates/cxx/gen/build/src/gen/
H A Dout.rs48 self.content.get_mut().next_section(); in next_section()
52 self.content.get_mut().begin_block(block); in begin_block()
56 self.content.get_mut().end_block(block); in end_block()
60 self.content.get_mut().set_namespace(namespace); in set_namespace()
72 let content = &self.content.get_mut().bytes; in content()
93 self.content.get_mut().flush(); in flush()
/third_party/rust/crates/proc-macro2/src/
H A Drcvec.rs46 pub fn get_mut(&mut self) -> Option<RcVecMut<T>> { in get_mut() functions
47 let inner = Rc::get_mut(&mut self.inner)?; in get_mut()
55 let vec = if let Some(owned) = Rc::get_mut(&mut self.inner) { in make_owned()
H A Dfallback.rs100 let mut inner = match self.inner.get_mut() { in drop()
/third_party/rust/crates/clap/src/parser/
H A Darg_matcher.rs100 pub(crate) fn get_mut(&mut self, arg: &Id) -> Option<&mut MatchedArg> {
101 self.matches.args.get_mut(arg)
176 let ma = self.get_mut(arg).expect(INTERNAL_ERROR_MSG);
181 let ma = self.get_mut(arg).expect(INTERNAL_ERROR_MSG);
/third_party/rust/crates/once_cell/tests/
H A Dit.rs30 assert!(c.get_mut().is_none()); in once_cell_get_mut()
32 *c.get_mut().unwrap() += 2; in once_cell_get_mut()
33 assert_eq!(c.get_mut(), Some(&mut 92)); in once_cell_get_mut()
167 let mut_ref: &mut u32 = Lazy::get_mut(&mut x).unwrap(); in lazy_get_mut()
290 assert!(c.get_mut().is_none()); in once_cell_get_mut()
292 *c.get_mut().unwrap() += 2; in once_cell_get_mut()
293 assert_eq!(c.get_mut(), Some(&mut 92)); in once_cell_get_mut()
/third_party/rust/crates/codespan/codespan/src/
H A Dfile.rs75 self.get_mut(file_id).update(source.into()) in update()
86 fn get_mut(&mut self, file_id: FileId) -> &mut File<Source> { in get_mut() functions
/third_party/rust/crates/bindgen/bindgen/ir/analysis/
H A Dmod.rs339 self.reachable.get_mut(&node).unwrap().insert(*sub_node); in constrain()
348 self.reachable.get_mut(&node).unwrap().insert(transitive); in constrain()
H A Dtemplate_params.rs212 .get_mut(&this_id) in take_this_id_usage_set()
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/
H A Dmod.rs1277 self.incoming.get_mut().extend_from_slice(data); in stateless()
1290 self.incoming.get_mut().clear(); in read()
1368 send(client_stream.get_mut(), server_stream.get_mut());
1371 send(server_stream.get_mut(), client_stream.get_mut());
1374 send(client_stream.get_mut(), server_stream.get_mut());
1378 send(server_stream.get_mut(), client_stream.get_mut());
[all...]
/third_party/rust/crates/rustix/src/path/
H A Ddec_int.rs101 match self.0.buf.get_mut(self.0.len..self.0.len + s.len()) { in write_str()
/third_party/rust/crates/unicode-ident/generate/src/
H A Dmain.rs122 while let Some(next) = halfchunkmap.get_mut(&back).and_then(VecDeque::pop_front) { in main()
/third_party/rust/crates/clap/src/util/
H A Dflat_map.rs104 pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> in get_mut() functions
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
H A Dmod.rs3409 pub fn get_mut(&mut self) -> &mut S { in get_mut() functions
3410 self.stream.get_mut() in get_mut()
3785 pub fn get_mut(&mut self) -> &mut S { in get_mut() functions
3788 bio::get_mut(bio) in get_mut()
3834 self.get_mut().flush() in flush()
4014 pub fn get_mut(&mut self) -> &mut S { in get_mut() functions
4017 bio::get_mut(bio) in get_mut()
/third_party/rust/crates/lazycell/src/
H A Dlib.rs281 match mem::replace(self.state.get_mut(), SOME) { in replace()
/third_party/rust/crates/minimal-lexical/src/
H A Dbigint.rs486 let xi = x.get_mut(start + index).unwrap(); in large_add_from()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs3847 s.get_mut($range),
3849 "(in assertion for: get_mut)",
3886 // and `None` test cases for get/get_mut.
3920 assert_eq!(v.get_mut($bad), None, "(in None assertion for get_mut)"); in pass()
10557 assert_eq!(v.get_mut(3), None); in test_get_mut()
10558 v.get_mut(1).map(|e| *e = 7); in test_get_mut()
10561 assert_eq!(v.get_mut(2), Some(&mut x)); in test_get_mut()
12047 match ring.get_mut(1) { in test_get_mut()
12052 assert_eq!(ring.get_mut( in test_get_mut()
20508 pub fn get_mut(this: &mut Self) -> Option<&mut T> { get_mut() functions
24697 pub fn get_mut(this: &mut Self) -> Option<&mut T> { get_mut() functions
26619 fn get_mut() { get_mut() functions
30580 pub fn get_mut<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut V> get_mut() functions
35470 pub fn get_mut(&mut self) -> &mut V { get_mut() functions
36803 fn get_mut<T: Ord>(v: &mut BTreeMap<Box<T>, ()>, t: &T) { test_borrow() functions
40885 pub fn get_mut(&mut self, index: usize) -> Option<&mut T> { get_mut() functions
[all...]
/third_party/rust/crates/termcolor/src/
H A Dlib.rs1270 pub fn get_mut(&mut self) -> &mut W { in get_mut() functions
1331 pub fn get_mut(&mut self) -> &mut W { in get_mut() functions

Completed in 52 milliseconds