pub struct DebugChoice {
pub text: String,
pub sticky: bool,
pub source: Option<SourceLocation>,
pub target: Option<String>,
pub def_id: String,
pub index: usize,
}Expand description
A pending choice and the knot it targets.
Fields§
§text: String§sticky: bool+ (sticky) vs * (once-only), as written (#3435) — see
Choice::sticky.
source: Option<SourceLocation>The choice text’s source location (#3435) — see
Choice::source.
target: Option<String>§def_id: StringThe choice target’s DefinitionId display form (W11/#3304) —
string-equal to the overlay projection’s def_id for the choice’s
own container, joining a PRESENTED choice back to its source span.
index: usizeThe raw flow.pending_choices index — the same pre-filter position
the visible Choice’s index carries and
that select_choice/choose expects. Not a post-filter enumeration
position: invisible-default choices are filtered out of what’s shown
but still occupy a slot in pending_choices, so this can skip values.
Auto Trait Implementations§
impl Freeze for DebugChoice
impl RefUnwindSafe for DebugChoice
impl Send for DebugChoice
impl Sync for DebugChoice
impl Unpin for DebugChoice
impl UnsafeUnpin for DebugChoice
impl UnwindSafe for DebugChoice
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