pub struct Hogwild<T>(/* private fields */);
Expand description
Hogwild for arbitrary data types.
Hogwild
subverts Rust’s type system by allowing concurrent modification
of values. This should only be used for data types that cannot end up in
an inconsistent state due to data races. For arrays HogwildArray
should
be preferred.
Trait Implementations§
impl<T> Send for Hogwild<T>
impl<T> Sync for Hogwild<T>
Auto Trait Implementations§
impl<T> Freeze for Hogwild<T>
impl<T> !RefUnwindSafe for Hogwild<T>
impl<T> Unpin for Hogwild<T>
impl<T> !UnwindSafe for Hogwild<T>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more