pub struct ContextEntry {
pub name: Name,
pub ty: Expr,
pub val: Option<Expr>,
pub binder_info: BinderInfo,
}Expand description
A scoped context entry with type and optional value.
Fields§
§name: NameVariable name.
ty: ExprVariable type.
val: Option<Expr>Optional value (for let-bindings).
binder_info: BinderInfoBinder information.
Implementations§
Source§impl ContextEntry
impl ContextEntry
Sourcepub fn let_binding(name: Name, ty: Expr, val: Expr) -> Self
pub fn let_binding(name: Name, ty: Expr, val: Expr) -> Self
Create a let-binding.
Sourcepub fn is_implicit(&self) -> bool
pub fn is_implicit(&self) -> bool
Check if this is implicit.
Trait Implementations§
Source§impl Clone for ContextEntry
impl Clone for ContextEntry
Auto Trait Implementations§
impl !Send for ContextEntry
impl !Sync for ContextEntry
impl Forget for ContextEntry
impl Freeze for ContextEntry
impl Move for ContextEntry
impl RefUnwindSafe for ContextEntry
impl Unpin for ContextEntry
impl UnsafeUnpin for ContextEntry
impl UnwindSafe for ContextEntry
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