pub struct EffectSink { /* private fields */ }Expand description
Effect 输出缓冲(写入端)。
由 ExecutionShell 持有,跨 step() 调用复用(clear 而非 drop+new),
实现热路径零分配(轴①)。
模块通过 &mut EffectSink 参数写入 effect,driver 通过 as_slice() 读取。
原草稿中 EffectBuffer / EffectBatch<'_> / EffectSink 三个名字统一为此类型
(审查意见2 S4 落实)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EffectSink
impl RefUnwindSafe for EffectSink
impl Send for EffectSink
impl Sync for EffectSink
impl Unpin for EffectSink
impl UnsafeUnpin for EffectSink
impl UnwindSafe for EffectSink
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