pub struct WgpuDiffusionBackend<'a> { /* private fields */ }Implementations§
Source§impl<'a> WgpuDiffusionBackend<'a>
impl<'a> WgpuDiffusionBackend<'a>
Sourcepub async fn new(config: DiffusionConfig) -> Result<Self, RuntimeError>
pub async fn new(config: DiffusionConfig) -> Result<Self, RuntimeError>
Creates a new instance.
Trait Implementations§
Source§impl<'a> ComputeBackend for WgpuDiffusionBackend<'a>
impl<'a> ComputeBackend for WgpuDiffusionBackend<'a>
fn step(&mut self, epoch: u64) -> Result<SimulationSnapshot, RuntimeError>
fn reconfigure(&mut self, config: DiffusionConfig) -> Result<(), RuntimeError>
Auto Trait Implementations§
impl<'a> !Freeze for WgpuDiffusionBackend<'a>
impl<'a> !RefUnwindSafe for WgpuDiffusionBackend<'a>
impl<'a> !UnwindSafe for WgpuDiffusionBackend<'a>
impl<'a> Send for WgpuDiffusionBackend<'a>
impl<'a> Sync for WgpuDiffusionBackend<'a>
impl<'a> Unpin for WgpuDiffusionBackend<'a>
impl<'a> UnsafeUnpin for WgpuDiffusionBackend<'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