Struct dynamic_arena::Sendable
source · [−]pub struct Sendable { /* private fields */ }
Expand description
Marker type that indicates you expect everything in the DynamicArena
to be Send
Although this prevents you from allocating non-Send
types in the arena,
it allows you to Send
the dynamic itself arena across threads.
We can’t safely implement Send
for DynamicArena
without this bound,
since you could otherwise place a Rc
in the arena, send it across threads,
and then proceed to drop the arena and mutate the reference count.
Trait Implementations
sourceimpl SendAbility for Sendable
impl SendAbility for Sendable
sourcefn create_arena<'a>() -> DynamicArena<'a, Self>
fn create_arena<'a>() -> DynamicArena<'a, Self>
Create an arena corresponding to this type of thread-safety
Auto Trait Implementations
impl RefUnwindSafe for Sendable
impl Send for Sendable
impl Sync for Sendable
impl Unpin for Sendable
impl UnwindSafe for Sendable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more