pub struct DatasetsColumnUsage {
pub usages: HashMap<ScopedVariable, ColumnUsage>,
pub aliases: HashMap<ScopedVariable, ScopedVariable>,
}Expand description
Struct that tracks the usage of all columns across a collection of datasets
Fields§
§usages: HashMap<ScopedVariable, ColumnUsage>§aliases: HashMap<ScopedVariable, ScopedVariable>Implementations§
Source§impl DatasetsColumnUsage
impl DatasetsColumnUsage
pub fn empty() -> Self
pub fn with_column_usage( &self, datum_var: &ScopedVariable, usage: ColumnUsage, ) -> Self
pub fn with_unknown_usage(&self, datum_var: &ScopedVariable) -> Self
pub fn without_column_usage( &self, datum_var: &ScopedVariable, usage: &ColumnUsage, ) -> Self
pub fn with_alias(&self, from: ScopedVariable, to: ScopedVariable) -> Self
Sourcepub fn union(&self, other: &DatasetsColumnUsage) -> DatasetsColumnUsage
pub fn union(&self, other: &DatasetsColumnUsage) -> DatasetsColumnUsage
Take the union of two DatasetColumnUsage instances.
Trait Implementations§
Source§impl Clone for DatasetsColumnUsage
impl Clone for DatasetsColumnUsage
Source§fn clone(&self) -> DatasetsColumnUsage
fn clone(&self) -> DatasetsColumnUsage
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 DatasetsColumnUsage
impl Debug for DatasetsColumnUsage
Source§impl PartialEq for DatasetsColumnUsage
impl PartialEq for DatasetsColumnUsage
impl Eq for DatasetsColumnUsage
impl StructuralPartialEq for DatasetsColumnUsage
Auto Trait Implementations§
impl Freeze for DatasetsColumnUsage
impl RefUnwindSafe for DatasetsColumnUsage
impl Send for DatasetsColumnUsage
impl Sync for DatasetsColumnUsage
impl Unpin for DatasetsColumnUsage
impl UnwindSafe for DatasetsColumnUsage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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