pub struct FusionSite {
pub enclosing_fn: String,
pub line: usize,
pub sink_fn: String,
pub consumer: ConsumerKind,
}Expand description
One detected fusion site: a builder call whose result is consumed
by a known sink (currently just String.join). Lowering rewrites
the producer + consumer pair into a single buffer-write loop.
Fields§
§enclosing_fn: StringName of the enclosing user fn that contains the call.
line: usizeLine of the consumer call.
sink_fn: StringThe matched buffer-build fn being wrapped.
consumer: ConsumerKindWhat’s consuming the builder’s result.
Trait Implementations§
Source§impl Clone for FusionSite
impl Clone for FusionSite
Source§fn clone(&self) -> FusionSite
fn clone(&self) -> FusionSite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FusionSite
impl Debug for FusionSite
Source§impl PartialEq for FusionSite
impl PartialEq for FusionSite
Source§fn eq(&self, other: &FusionSite) -> bool
fn eq(&self, other: &FusionSite) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FusionSite
impl StructuralPartialEq for FusionSite
Auto Trait Implementations§
impl Freeze for FusionSite
impl RefUnwindSafe for FusionSite
impl Send for FusionSite
impl Sync for FusionSite
impl Unpin for FusionSite
impl UnsafeUnpin for FusionSite
impl UnwindSafe for FusionSite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.