pub struct RuleSetBuilder<'outer> { /* private fields */ }Expand description
Builder for a RuleSet.
See Database::new_rule_set for more information.
Implementations§
Source§impl<'outer> RuleSetBuilder<'outer>
impl<'outer> RuleSetBuilder<'outer>
pub fn new(db: &'outer mut Database) -> Self
Sourcepub fn estimate_size(&self, table: TableId, c: Option<Constraint>) -> usize
pub fn estimate_size(&self, table: TableId, c: Option<Constraint>) -> usize
Estimate the size of the subset of the table matching the given constraint.
This is a wrapper around the Database::estimate_size method.
Sourcepub fn new_rule<'a>(&'a mut self) -> QueryBuilder<'outer, 'a>
pub fn new_rule<'a>(&'a mut self) -> QueryBuilder<'outer, 'a>
Add a rule to this rule set.
pub fn add_rule_from_cached_plan( &mut self, cached: &CachedPlan, extra_constraints: &[(AtomId, Constraint)], ) -> RuleId
Auto Trait Implementations§
impl<'outer> Freeze for RuleSetBuilder<'outer>
impl<'outer> !RefUnwindSafe for RuleSetBuilder<'outer>
impl<'outer> Send for RuleSetBuilder<'outer>
impl<'outer> Sync for RuleSetBuilder<'outer>
impl<'outer> Unpin for RuleSetBuilder<'outer>
impl<'outer> !UnwindSafe for RuleSetBuilder<'outer>
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