pub struct InContext<'a, D>where
D: Contextual,{ /* private fields */ }Expand description
A short-term binding of Context and any immutable object of a
type that implements the Contextual trait.
The purpose of this type is to allow a transparent read access to
shared data, like names etc. To prevent coarse-grained locking,
Context is internally represented by a ContextHandle;
however, Context can’t be modified through InContext.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, D> Freeze for InContext<'a, D>
impl<'a, D> RefUnwindSafe for InContext<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for InContext<'a, D>where
D: Sync,
impl<'a, D> Sync for InContext<'a, D>where
D: Sync,
impl<'a, D> Unpin for InContext<'a, D>
impl<'a, D> UnwindSafe for InContext<'a, D>where
D: RefUnwindSafe,
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
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.