pub struct EffectStream<'tree> { /* private fields */ }Expand description
A log of effects to be replayed by the materializer. See ADR-0006 for details.
Implementations§
Source§impl<'tree> EffectStream<'tree>
impl<'tree> EffectStream<'tree>
pub fn new() -> Self
Sourcepub fn push_node(&mut self, node: Node<'tree>, source: &'tree str)
pub fn push_node(&mut self, node: Node<'tree>, source: &'tree str)
Appends a captured node to the stream.
Sourcepub fn push_captured_node(&mut self, node: CapturedNode<'tree>)
pub fn push_captured_node(&mut self, node: CapturedNode<'tree>)
Appends a captured node directly.
Sourcepub fn nodes(&self) -> &[CapturedNode<'tree>]
pub fn nodes(&self) -> &[CapturedNode<'tree>]
Returns the captured nodes.
Trait Implementations§
Source§impl<'tree> Clone for EffectStream<'tree>
impl<'tree> Clone for EffectStream<'tree>
Source§fn clone(&self) -> EffectStream<'tree>
fn clone(&self) -> EffectStream<'tree>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tree> Debug for EffectStream<'tree>
impl<'tree> Debug for EffectStream<'tree>
Source§impl<'tree> Default for EffectStream<'tree>
impl<'tree> Default for EffectStream<'tree>
Source§fn default() -> EffectStream<'tree>
fn default() -> EffectStream<'tree>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'tree> Freeze for EffectStream<'tree>
impl<'tree> RefUnwindSafe for EffectStream<'tree>
impl<'tree> Send for EffectStream<'tree>
impl<'tree> Sync for EffectStream<'tree>
impl<'tree> Unpin for EffectStream<'tree>
impl<'tree> UnwindSafe for EffectStream<'tree>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)