pub enum FuncTemplate {
Map,
Filter,
Fold,
Unfold,
Custom(String),
}Expand description
A higher-order program template for functional synthesis.
Variants§
Map
map f xs – apply f to each element.
Filter
filter p xs – keep elements satisfying p.
Fold
fold f init xs – left fold.
Unfold
unfold seed step – anamorphism.
Custom(String)
Custom combinator with a name.
Implementations§
Trait Implementations§
Source§impl Clone for FuncTemplate
impl Clone for FuncTemplate
Source§fn clone(&self) -> FuncTemplate
fn clone(&self) -> FuncTemplate
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 moreSource§impl Debug for FuncTemplate
impl Debug for FuncTemplate
Source§impl PartialEq for FuncTemplate
impl PartialEq for FuncTemplate
impl Eq for FuncTemplate
impl StructuralPartialEq for FuncTemplate
Auto Trait Implementations§
impl Freeze for FuncTemplate
impl RefUnwindSafe for FuncTemplate
impl Send for FuncTemplate
impl Sync for FuncTemplate
impl Unpin for FuncTemplate
impl UnsafeUnpin for FuncTemplate
impl UnwindSafe for FuncTemplate
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