pub struct ControlFlowContext {
pub in_conditional: bool,
pub in_loop: bool,
pub depth: usize,
}Expand description
Context for tracking control flow during type evolution
Fields§
§in_conditional: boolWhether we’re inside a conditional branch
in_loop: boolWhether we’re inside a loop
depth: usizeNesting depth (for determining field optionality)
Trait Implementations§
Source§impl Clone for ControlFlowContext
impl Clone for ControlFlowContext
Source§fn clone(&self) -> ControlFlowContext
fn clone(&self) -> ControlFlowContext
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 moreAuto Trait Implementations§
impl Freeze for ControlFlowContext
impl RefUnwindSafe for ControlFlowContext
impl Send for ControlFlowContext
impl Sync for ControlFlowContext
impl Unpin for ControlFlowContext
impl UnsafeUnpin for ControlFlowContext
impl UnwindSafe for ControlFlowContext
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