Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dtypes.rs40 /// [`try_from_foreign`], [`borrow`], or [`borrow_mut`] can result in undefined behavior.
50 /// [`borrow_mut`]: Self::borrow_mut
118 /// `borrow_mut` on the same object.
124 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Self::BorrowedMut<'a>;
141 unsafe fn borrow_mut<'a>(_: *mut c_void) -> Self::BorrowedMut<'a> {}
126 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Self::BorrowedMut<'a>; borrow_mut() method
143 unsafe fn borrow_mut<'a>(_: *mut c_void) -> Self::BorrowedMut<'a> {} borrow_mut() method
H A Dmaple_tree.rs386 Some(unsafe { T::borrow_mut(ret) }) in load()
580 Some(unsafe { T::borrow_mut(ret) }) in find()
H A Dxarray.rs204 unsafe { T::borrow_mut(ptr.as_ptr()) } in get_mut()
/linux/rust/kernel/alloc/
H A Dkbox.rs487 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> &'a mut T {
527 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> {
617 fn borrow_mut(&mut self) -> &mut T {
512 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> &'a mut T { borrow_mut() function
552 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> { borrow_mut() function
642 fn borrow_mut(&mut self) -> &mut T { borrow_mut() function
H A Dkvec.rs955 fn borrow_mut(&mut self) -> &mut [T] { in borrow_mut() function
/linux/rust/syn/
H A Dlookahead.rs86 lookahead.comparisons.borrow_mut().push(display()); in peek_impl()
/linux/rust/proc-macro2/
H A Dfallback.rs198 let mut sm = sm.borrow_mut(); in get_cursor()
335 SOURCE_MAP.with(|sm| sm.borrow_mut().files.truncate(1)); in invalidate_current_thread_spans()
547 SOURCE_MAP.with(|sm| sm.borrow_mut().fileinfo_mut(*self).byte_range(*self)) in byte_range()
637 Some(SOURCE_MAP.with(|sm| sm.borrow_mut().fileinfo_mut(*self).source_text(*self))) in source_text()