pub struct ArcRef<T: ?Sized> {
pub(super) head: NonNull<ArcHead>,
pub(super) layout: Layout,
pub(super) data: NonNull<T>,
}Expand description
Reference into an Arc<T>.
Fields§
§head: NonNull<ArcHead>§layout: Layout§data: NonNull<T>Trait Implementations§
Source§impl<T: ?Sized> BorrowPlace<ArcRef<T>> for ArcHandle<T>
impl<T: ?Sized> BorrowPlace<ArcRef<T>> for ArcHandle<T>
Source§const ACCESS: AccessKind = AccessKind::Shared
const ACCESS: AccessKind = AccessKind::Shared
The access permissions to the place required by
Self::borrow.Source§type Timing = Instant
type Timing = Instant
The timing of the access permissions of
Self::borrow.Source§impl<T: ?Sized> BorrowPlace<ArcRef<T>> for ArcRefHandle<T>
impl<T: ?Sized> BorrowPlace<ArcRef<T>> for ArcRefHandle<T>
Source§const ACCESS: AccessKind = AccessKind::Shared
const ACCESS: AccessKind = AccessKind::Shared
The access permissions to the place required by
Self::borrow.Source§type Timing = Instant
type Timing = Instant
The timing of the access permissions of
Self::borrow.Source§impl<T: ?Sized> CreateHandle<Instant> for ArcRef<T>
impl<T: ?Sized> CreateHandle<Instant> for ArcRef<T>
Source§const ACCESS: AccessKind = AccessKind::Shared
const ACCESS: AccessKind = AccessKind::Shared
The access permissions required by
Self::handle_from_raw.Source§type Handle = ArcRefHandle<T>
type Handle = ArcRefHandle<T>
The handle that’s used for operating on the represented place. Read more
Auto Trait Implementations§
impl<T> !Send for ArcRef<T>
impl<T> !Sync for ArcRef<T>
impl<T> Freeze for ArcRef<T>where
T: ?Sized,
impl<T> RefUnwindSafe for ArcRef<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Unpin for ArcRef<T>where
T: ?Sized,
impl<T> UnsafeUnpin for ArcRef<T>where
T: ?Sized,
impl<T> UnwindSafe for ArcRef<T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more