pub struct Scope {
pub cats: Vec<CategoryId>,
pub keys: BTreeSet<Vec<ItemId>>,
}Expand description
The coordinates a statement touched, over one relation’s dimension categories.
Fields§
§cats: Vec<CategoryId>The touched categories.
keys: BTreeSet<Vec<ItemId>>Touched coordinates: one item per Scope::cats entry.
Implementations§
Source§impl Scope
impl Scope
Sourcepub fn from_rows(
model: &Model,
cats: &[CategoryId],
rows: &[Vec<Option<String>>],
) -> Scope
pub fn from_rows( model: &Model, cats: &[CategoryId], rows: &[Vec<Option<String>>], ) -> Scope
From transition-table rows (item names in cats order). A row with a
NULL or never-minted value is skipped: no cell can have it.
Sourcepub fn restrict_inputs(&self, model: &mut Model)
pub fn restrict_inputs(&self, model: &mut Model)
Drop the input cells no in-scope output cell reads: those whose
projection onto the touched categories was not touched. Valid only
for an element-wise Plan.
Sourcepub fn retain_rows(
&self,
model: &Model,
measure: MeasureId,
rows: &mut ResultRows,
) -> Result<()>
pub fn retain_rows( &self, model: &Model, measure: MeasureId, rows: &mut ResultRows, ) -> Result<()>
Keep only measure’s result rows in scope.
Trait Implementations§
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Data for Twhere
T: Clone + 'static,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.