pub struct EffectLog<'t>(/* private fields */);Expand description
Effect log with truncation support for backtracking.
Implementations§
Source§impl<'t> EffectLog<'t>
impl<'t> EffectLog<'t>
Sourcepub fn push(&mut self, effect: RuntimeEffect<'t>)
pub fn push(&mut self, effect: RuntimeEffect<'t>)
Push an effect to the log.
Sourcepub fn as_slice(&self) -> &[RuntimeEffect<'t>]
pub fn as_slice(&self) -> &[RuntimeEffect<'t>]
Get effects as slice.
Sourcepub fn into_vec(self) -> Vec<RuntimeEffect<'t>>
pub fn into_vec(self) -> Vec<RuntimeEffect<'t>>
Consume into vec.
Trait Implementations§
Auto Trait Implementations§
impl<'t> Freeze for EffectLog<'t>
impl<'t> RefUnwindSafe for EffectLog<'t>
impl<'t> Send for EffectLog<'t>
impl<'t> Sync for EffectLog<'t>
impl<'t> Unpin for EffectLog<'t>
impl<'t> UnwindSafe for EffectLog<'t>
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