pub struct ArcTokenUnsyncRef<'a>(/* private fields */);
Available on crate feature
alloc
and target_has_atomic="ptr"
only.Expand description
Represents a borrow of ArcToken
constrained to a single thread.
Implementations§
Source§impl ArcTokenUnsyncRef<'_>
impl ArcTokenUnsyncRef<'_>
Sourcepub fn id(&self) -> ArcTokenId
pub fn id(&self) -> ArcTokenId
Construct an ArcTokenId
that equates to self
.
Trait Implementations§
Source§impl<'a> Debug for ArcTokenUnsyncRef<'a>
impl<'a> Debug for ArcTokenUnsyncRef<'a>
Source§impl<'a> Hash for ArcTokenUnsyncRef<'a>
impl<'a> Hash for ArcTokenUnsyncRef<'a>
Source§impl<'a> PartialEq for ArcTokenUnsyncRef<'a>
impl<'a> PartialEq for ArcTokenUnsyncRef<'a>
Source§impl Token<ArcTokenId> for ArcTokenUnsyncRef<'_>
impl Token<ArcTokenId> for ArcTokenUnsyncRef<'_>
fn eq_id(&self, id: &ArcTokenId) -> bool
impl<'a> Eq for ArcTokenUnsyncRef<'a>
impl<'a> StructuralPartialEq for ArcTokenUnsyncRef<'a>
impl Unsync for ArcTokenUnsyncRef<'_>
Auto Trait Implementations§
impl<'a> Freeze for ArcTokenUnsyncRef<'a>
impl<'a> !RefUnwindSafe for ArcTokenUnsyncRef<'a>
impl<'a> Send for ArcTokenUnsyncRef<'a>
impl<'a> !Sync for ArcTokenUnsyncRef<'a>
impl<'a> Unpin for ArcTokenUnsyncRef<'a>
impl<'a> !UnwindSafe for ArcTokenUnsyncRef<'a>
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