pub struct Binder {
pub name: String,
pub ty: Option<Box<Located<SurfaceExpr>>>,
pub info: BinderKind,
}Expand description
Binder for lambda and Pi types.
Fields§
§name: StringVariable name (can be _ for unused)
ty: Option<Box<Located<SurfaceExpr>>>Type annotation (optional for lambda, required for Pi)
info: BinderKindBinder info (implicit, instance, etc.)
Trait Implementations§
impl StructuralPartialEq for Binder
Auto Trait Implementations§
impl Freeze for Binder
impl RefUnwindSafe for Binder
impl Send for Binder
impl Sync for Binder
impl Unpin for Binder
impl UnsafeUnpin for Binder
impl UnwindSafe for Binder
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