Skip to main content

Setup

Struct Setup 

Source
pub struct Setup<VoxelType, VertexType, TaskData, TaskMesh>
where VoxelType: 'static + Voxel + Send + Sync, VertexType: 'static + Vertex + Clone + Send + Sync, TaskData: Task<Input<VoxelType>, Output<VoxelType>>, TaskMesh: Task<Input<VoxelType>, Output<VertexType>>,
{ pub in_data: Repartitor<Input<VoxelType>>, pub out_data: Receiver<Output<VertexType>>, pub thrs_data: Vec<TaskData>, pub thrs_mesh: Vec<TaskMesh>, }

Fields§

§in_data: Repartitor<Input<VoxelType>>§out_data: Receiver<Output<VertexType>>§thrs_data: Vec<TaskData>§thrs_mesh: Vec<TaskMesh>

Implementations§

Source§

impl<VoxelType, VertexType, TaskData, TaskMesh> Setup<VoxelType, VertexType, TaskData, TaskMesh>
where VoxelType: 'static + Voxel + Send + Sync, VertexType: 'static + Vertex + Clone + Send + Sync, TaskData: Task<Input<VoxelType>, Output<VoxelType>>, TaskMesh: Task<Input<VoxelType>, Output<VertexType>>,

Source

pub fn send( &self, value: Input<VoxelType>, ) -> Result<(), SendError<Input<VoxelType>>>

Auto Trait Implementations§

§

impl<VoxelType, VertexType, TaskData, TaskMesh> !Freeze for Setup<VoxelType, VertexType, TaskData, TaskMesh>

§

impl<VoxelType, VertexType, TaskData, TaskMesh> !RefUnwindSafe for Setup<VoxelType, VertexType, TaskData, TaskMesh>

§

impl<VoxelType, VertexType, TaskData, TaskMesh> Send for Setup<VoxelType, VertexType, TaskData, TaskMesh>
where TaskData: Send, TaskMesh: Send,

§

impl<VoxelType, VertexType, TaskData, TaskMesh> !Sync for Setup<VoxelType, VertexType, TaskData, TaskMesh>

§

impl<VoxelType, VertexType, TaskData, TaskMesh> Unpin for Setup<VoxelType, VertexType, TaskData, TaskMesh>
where TaskData: Unpin, TaskMesh: Unpin,

§

impl<VoxelType, VertexType, TaskData, TaskMesh> UnsafeUnpin for Setup<VoxelType, VertexType, TaskData, TaskMesh>

§

impl<VoxelType, VertexType, TaskData, TaskMesh> UnwindSafe for Setup<VoxelType, VertexType, TaskData, TaskMesh>
where TaskData: UnwindSafe, TaskMesh: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.