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§
Source§impl SendAbility for Sendable
impl SendAbility for Sendable
Source§fn 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 Freeze for Sendable
impl RefUnwindSafe for Sendable
impl Send for Sendable
impl Sync for Sendable
impl Unpin for Sendable
impl UnsafeUnpin for Sendable
impl UnwindSafe for Sendable
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