FieldWriter

Trait FieldWriter 

Source
pub trait FieldWriter {
    // Required method
    fn write(&mut self, field: FieldId) -> Option<&mut [f32]>;
}
Expand description

Mutable access to field data within a simulation step.

Implemented by arena types to provide propagators with write access to staging buffers. Returns None if the field is not writable in the current context.

Required Methods§

Source

fn write(&mut self, field: FieldId) -> Option<&mut [f32]>

Get a mutable slice for writing field data.

Returns None if the field ID is invalid or not writable.

Implementors§