pub struct BoidChunk<'a> {
pub pos_x: &'a mut [f32],
pub pos_y: &'a mut [f32],
pub vel_x: &'a mut [f32],
pub vel_y: &'a mut [f32],
pub color: &'a mut [u8],
}Expand description
The slice of each writable lane that one chunk owns.
Fields§
§pos_x: &'a mut [f32]Slice of the pos_x lane’s next side that the chunk writes.
pos_y: &'a mut [f32]Slice of the pos_y lane’s next side that the chunk writes.
vel_x: &'a mut [f32]Slice of the vel_x lane’s next side that the chunk writes.
vel_y: &'a mut [f32]Slice of the vel_y lane’s next side that the chunk writes.
color: &'a mut [u8]Slice of the color lane that the chunk owns.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for BoidChunk<'a>
impl<'a> Freeze for BoidChunk<'a>
impl<'a> RefUnwindSafe for BoidChunk<'a>
impl<'a> Send for BoidChunk<'a>
impl<'a> Sync for BoidChunk<'a>
impl<'a> Unpin for BoidChunk<'a>
impl<'a> UnsafeUnpin for BoidChunk<'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
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