Home
last modified time | relevance | path

Searched refs:as_mut (Results 1 – 25 of 116) sorted by relevance

12345

/third_party/rust/crates/nix/test/sys/
Dtest_aio.rs36 let err = $aiocb.as_mut().error();
87 let err = aiof.as_mut().submit(); in error()
104 aiof.as_mut().submit().unwrap(); in ok()
106 aiof.as_mut().aio_return().unwrap(); in ok()
148 aior.as_mut().submit().unwrap(); in cancel()
150 aior.as_mut().cancel().unwrap(); in cancel()
154 let _ = aior.as_mut().aio_return(); in cancel()
175 aior.as_mut().submit().expect_err("assertion failed"); in error()
197 aior.as_mut().submit().unwrap(); in ok()
201 assert_eq!(aior.as_mut().aio_return().unwrap(), EXPECT.len()); in ok()
[all …]
Dtest_aio_drop.rs34 aiocb.as_mut().submit().unwrap(); in test_drop()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dunion_bitfield_1_0.rs40 let byte = &mut self.storage.as_mut()[byte_index]; in set_bit()
106 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
175 self._bitfield_1.as_mut().set(0usize, 1u8, val as u64) in set_derp()
229 self._bitfield_1.as_mut().set(0usize, 31u8, val as u64) in set_foo()
244 self._bitfield_1.as_mut().set(31usize, 1u8, val as u64) in set_bar()
Dunion_with_anon_struct_bitfield_1_0.rs40 let byte = &mut self.storage.as_mut()[byte_index]; in set_bit()
106 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Dunion-in-ns_1_0.rs22 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Ddisable-untagged-union.rs20 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Dwrap_unsafe_ops_anon_union_1_0.rs20 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Dunion_dtor_1_0.rs20 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Dunion_template_1_0.rs20 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Dbindgen-union-inside-namespace.rs22 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
Dissue-1034.rs40 let byte = &mut self.storage.as_mut()[byte_index]; in set_bit()
Dissue-1076-unnamed-bitfield-alignment.rs40 let byte = &mut self.storage.as_mut()[byte_index]; in set_bit()
Dunion_fields_1_0.rs20 pub unsafe fn as_mut(&mut self) -> &mut T { in as_mut() method
/third_party/rust/crates/cxx/src/
Dunique_ptr.rs64 pub fn as_mut(&mut self) -> Option<Pin<&mut T>> { in as_mut() function
66 let mut_reference = (T::__get(self.repr) as *mut T).as_mut()?; in as_mut()
78 match self.as_mut() { in pin_mut()
150 match self.as_mut() { in deref_mut()
Dcxx_string.rs262 self.as_mut().push_str(s); in write_str()
270 self.as_mut().push_bytes(buf); in write()
/third_party/rust/crates/pin-utils/tests/
Dprojection.rs22 let x1: Pin<&mut i32> = foo.as_mut().field1(); in projection()
25 let x2: &mut i32 = foo.as_mut().field2(); in projection()
/third_party/rust/crates/nix/src/sys/
Daio.rs175 self.as_mut().in_progress = true; in set_in_progress()
398 let p: *mut libc::aiocb = &mut self.as_mut().aiocb().aiocb.0;
485 let aiocb = &mut self.as_mut().aiocb().aiocb.0; in submit()
607 fn as_mut(&mut self) -> &mut libc::aiocb { in as_mut() method
730 fn as_mut(&mut self) -> &mut libc::aiocb { in as_mut() method
843 fn as_mut(&mut self) -> &mut libc::aiocb { in as_mut() method
963 fn as_mut(&mut self) -> &mut libc::aiocb { in as_mut() method
Dtimer.rs150 libc::timer_gettime(self.0, timerspec.as_mut()) in get()
Dtimerfd.rs162 libc::timerfd_gettime(self.fd, timerspec.as_mut()) in get()
/third_party/rust/crates/serde/serde_derive/src/internals/
Dctxt.rs34 .as_mut() in error_spanned_by()
42 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error()
/third_party/rust/crates/either/src/
Dlib.rs253 pub fn as_mut(&mut self) -> Either<&mut L, &mut R> { in as_mut() method
1203 fn as_mut(&mut self) -> &mut $t {
1204 for_both!(*self, ref mut inner => inner.as_mut())
1242 fn as_mut(&mut self) -> &mut Target { in as_mut() function
1243 for_both!(*self, ref mut inner => inner.as_mut()) in as_mut()
1252 fn as_mut(&mut self) -> &mut [Target] { in as_mut() function
1253 for_both!(*self, ref mut inner => inner.as_mut()) in as_mut()
1321 assert_eq!(e.as_mut().right(), Some(&mut 2)); in basic()
/third_party/rust/crates/proc-macro2/src/
Drcvec.rs83 pub fn as_mut(&mut self) -> RcVecMut<T> { in as_mut() method
109 pub fn as_mut(&mut self) -> RcVecMut<T> { in as_mut() method
/third_party/rust/crates/proc-macro-error/src/
Ddummy.rs140 if let Some(ts) = cell.as_mut() { in append_dummy()
/third_party/rust/crates/bindgen/book/src/
Dusing-unions.md113 // Instead, access the field through `.as_ref()` and `.as_mut()` helpers:
115 *x.alfa.as_mut() = bindings::alpha_t {
/third_party/rust/crates/bindgen/bindgen/codegen/
Dbitfield_unit.rs41 let byte = &mut self.storage.as_mut()[byte_index]; in set_bit()

12345