pub struct Deps {
pub local: Vec<&'static str>,
pub related: Vec<RelatedDep>,
}Expand description
What a fetch reads, and therefore what can move a row through it.
Split by table because a query’s own columns are one question, and the columns it reads across a relation are another: a change to a related row the predicate never mentions must stay as free as a change to a local column it never mentions.
Fields§
§local: Vec<&'static str>Columns of the query’s own table: its predicate’s and its sort’s.
One entry per relation the predicate crosses, at any depth.
Implementations§
Source§impl Deps
impl Deps
Sourcepub fn touches_local(&self, column: &str) -> bool
pub fn touches_local(&self, column: &str) -> bool
Whether a change to this column of the query’s own table can move a row.
Whether a change to this column of table, reached across a relation, can move a row.
The tables this fetch reads across a relation: what a query subscribes to beyond its own store.
Trait Implementations§
impl StructuralPartialEq for Deps
Auto Trait Implementations§
impl Forget for Deps
impl Freeze for Deps
impl RefUnwindSafe for Deps
impl Send for Deps
impl Sync for Deps
impl Unpin for Deps
impl UnsafeUnpin for Deps
impl UnwindSafe for Deps
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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