pub struct ECParams {
pub frontier_limit: usize,
pub search_limit_timeout: Option<Duration>,
pub search_limit_description_length: Option<f64>,
}
Expand description
Parameters for the EC algorithm.
The first of these limits/timeouts to be hit determines termination of enumeration. It is
dangerous to have both search limits set to None
!
Fields§
§frontier_limit: usize
The maximum frontier size; the number of task solutions to be hit before enumeration is stopped for a particular task.
search_limit_timeout: Option<Duration>
A timeout before enumeration is stopped, run independently per distinct TypeScheme
being
enumerated. If this is reached, there may be fewer than frontier_limit
many solutions.
search_limit_description_length: Option<f64>
An approximate limit on enumerated description length. If this is reached, there may be
fewer than frontier_limit
many solutions.
Auto Trait Implementations§
impl Freeze for ECParams
impl RefUnwindSafe for ECParams
impl Send for ECParams
impl Sync for ECParams
impl Unpin for ECParams
impl UnwindSafe for ECParams
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more