pub struct VtreeOptions { /* private fields */ }Expand description
The options of one vtree request.
The default ranks the candidates of a portfolio spec by how evenly they
spread the clauses over the tree, with no deadline. Nothing about the
construction is read from ambient state apart from vitri’s VITRI_*
vtree-selection settings, which every build reads from the environment.
Implementations§
Source§impl VtreeOptions
impl VtreeOptions
Sourcepub fn by_peak_width() -> Self
pub fn by_peak_width() -> Self
Selection that ranks the candidates by their peak context width over every variable; the projected counts ask for it when there is a show set.
Sourcepub fn with_deadline(self, deadline: Option<Instant>) -> Self
pub fn with_deadline(self, deadline: Option<Instant>) -> Self
Stop construction at deadline. None leaves it unbounded. A build
that reaches it still returns a vtree: the candidate under way gets one
short attempt and the rest are not started.
Trait Implementations§
Source§impl Clone for VtreeOptions
impl Clone for VtreeOptions
Source§fn clone(&self) -> VtreeOptions
fn clone(&self) -> VtreeOptions
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 VtreeOptions
impl Debug for VtreeOptions
Auto Trait Implementations§
impl Freeze for VtreeOptions
impl !RefUnwindSafe for VtreeOptions
impl !Send for VtreeOptions
impl !Sync for VtreeOptions
impl Unpin for VtreeOptions
impl !UnwindSafe for VtreeOptions
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