pub struct Binding {
pub name: String,
pub occurrence: Occurrence,
pub tpe: Type,
}Expand description
One name a Decision::Leaf binds: the value at occurrence, of type tpe.
The type is the solved one the pattern carried. It is here because a backend with
more than one representation — WebAssembly’s i64, f64 and reference — reads
which one a value has off its type, and the leaf gives it no other way back to that
type short of working it out again from the scrutinee’s.
Fields§
§name: String§occurrence: Occurrence§tpe: TypeTrait Implementations§
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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