pub struct Hole {
pub id: usize,
pub expected_type: String,
pub constraint: Option<String>,
}Expand description
A hole in a program sketch, parameterised by expected type.
Fields§
§id: usizeUnique identifier for this hole.
expected_type: StringExpected type of the expression filling this hole.
constraint: Option<String>Optional constraint on the filler.
Implementations§
Trait Implementations§
impl Eq for Hole
impl StructuralPartialEq for Hole
Auto Trait Implementations§
impl Freeze for Hole
impl RefUnwindSafe for Hole
impl Send for Hole
impl Sync for Hole
impl Unpin for Hole
impl UnsafeUnpin for Hole
impl UnwindSafe for Hole
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