pub struct NarrowedView {
pub narrowed_ty: Type,
pub facts: TypeFacts,
pub excluded_literals: BTreeSet<LiteralValue>,
pub binding: Ident,
pub source: ExprId,
}Fields§
§narrowed_ty: Type§facts: TypeFacts§excluded_literals: BTreeSet<LiteralValue>Literal values excluded by negative predicates (e.g., s.kind !== "circle"
adds "circle" here).
binding: IdentShadow Wasm local binding name (#narrow_<N>) codegen uses for in-region
references to this narrowed path.
source: ExprIdUn-narrowed source expression codegen evaluates at NarrowRegion entry.
Minted fresh — not shared with other AST positions (would double-trigger
walker visits).
Trait Implementations§
Source§impl Clone for NarrowedView
impl Clone for NarrowedView
Source§impl Debug for NarrowedView
impl Debug for NarrowedView
impl Eq for NarrowedView
Source§impl PartialEq for NarrowedView
impl PartialEq for NarrowedView
impl StructuralPartialEq for NarrowedView
Auto Trait Implementations§
impl Freeze for NarrowedView
impl RefUnwindSafe for NarrowedView
impl Send for NarrowedView
impl Sync for NarrowedView
impl Unpin for NarrowedView
impl UnsafeUnpin for NarrowedView
impl UnwindSafe for NarrowedView
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.