pub struct TypeDirectedSynth {
pub depth_limit: usize,
pub attempts: usize,
}Expand description
Type-directed synthesiser: Djinn/Agsy-style proof search.
Fields§
§depth_limit: usizeDepth limit for proof search.
attempts: usizeNumber of synthesis attempts made.
Implementations§
Source§impl TypeDirectedSynth
impl TypeDirectedSynth
Sourcepub fn synthesise(
&mut self,
ctx: &SynthContext,
goal_type: &SynthType,
depth: usize,
) -> Option<String>
pub fn synthesise( &mut self, ctx: &SynthContext, goal_type: &SynthType, depth: usize, ) -> Option<String>
Attempt to synthesise a term of goal_type from ctx.
Returns a program string on success.
Trait Implementations§
Source§impl Clone for TypeDirectedSynth
impl Clone for TypeDirectedSynth
Source§fn clone(&self) -> TypeDirectedSynth
fn clone(&self) -> TypeDirectedSynth
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 TypeDirectedSynth
impl RefUnwindSafe for TypeDirectedSynth
impl Send for TypeDirectedSynth
impl Sync for TypeDirectedSynth
impl Unpin for TypeDirectedSynth
impl UnsafeUnpin for TypeDirectedSynth
impl UnwindSafe for TypeDirectedSynth
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