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
Source§fn clone(&self) -> ContextEntry
fn clone(&self) -> ContextEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContextEntry
impl RefUnwindSafe for ContextEntry
impl Send for ContextEntry
impl Sync 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