pub enum ReduceHint {
None,
Current,
Accumulator,
CurrentPath,
AccumulatorPath,
}Expand description
Hint for reduce context resolution, detected at compile time.
Variants§
None
Normal path access (no reduce context)
Current
Path is exactly “current” — return reduce_current directly
Accumulator
Path is exactly “accumulator” — return reduce_accumulator directly
CurrentPath
Path starts with “current.” — segments[0] is “current”, use segments[1..] from reduce_current
AccumulatorPath
Path starts with “accumulator.” — segments[0] is “accumulator”, use segments[1..] from reduce_accumulator
Trait Implementations§
Source§impl Clone for ReduceHint
impl Clone for ReduceHint
Source§fn clone(&self) -> ReduceHint
fn clone(&self) -> ReduceHint
Returns a duplicate of the value. Read more
1.0.0 · 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 ReduceHint
impl Debug for ReduceHint
Source§impl PartialEq for ReduceHint
impl PartialEq for ReduceHint
impl Copy for ReduceHint
impl Eq for ReduceHint
impl StructuralPartialEq for ReduceHint
Auto Trait Implementations§
impl Freeze for ReduceHint
impl RefUnwindSafe for ReduceHint
impl Send for ReduceHint
impl Sync for ReduceHint
impl Unpin for ReduceHint
impl UnsafeUnpin for ReduceHint
impl UnwindSafe for ReduceHint
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