Home
last modified time | relevance | path

Searched refs:ArcBorrow (Results 1 – 4 of 4) sorted by relevance

/linux/rust/kernel/sync/
A Darc.rs265 unsafe { ArcBorrow::new(self.ptr) } in as_arc_borrow()
337 type Borrowed<'a> = ArcBorrow<'a, T>;
350 unsafe { ArcBorrow::new(inner) } in borrow()
478 pub struct ArcBorrow<'a, T: ?Sized + 'a> { struct
489 for ArcBorrow<'_, T>
493 impl<T: ?Sized> Clone for ArcBorrow<'_, T> { implementation
499 impl<T: ?Sized> Copy for ArcBorrow<'_, T> {} implementation
501 impl<T: ?Sized> ArcBorrow<'_, T> { impls
539 impl<T: ?Sized> From<ArcBorrow<'_, T>> for Arc<T> {
540 fn from(b: ArcBorrow<'_, T>) -> Self { in from()
[all …]
/linux/rust/kernel/
A Dlist.rs8 use crate::sync::ArcBorrow;
546 type Item = ArcBorrow<'a, T>;
548 fn next(&mut self) -> Option<ArcBorrow<'a, T>> { in next()
575 Some(unsafe { ArcBorrow::from_raw(item) }) in next()
591 pub fn current(&self) -> ArcBorrow<'_, T> { in current()
603 unsafe { ArcBorrow::from_raw(me) } in current()
651 type Item = ArcBorrow<'a, T>;
A Dsync.rs15 pub use arc::{Arc, ArcBorrow, UniqueArc};
/linux/rust/kernel/list/
A Darc.rs9 use crate::sync::{Arc, ArcBorrow, UniqueArc};
292 pub fn try_from_arc_borrow(arc: ArcBorrow<'_, T>) -> Option<Self> in try_from_arc_borrow()
399 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow()

Completed in 11 milliseconds