pub struct CheckReads {
pub fields: &'static [&'static str],
pub items: &'static [&'static str],
}Expand description
What a record’s own check reads: an edit that touches none of it cannot break the invariant, so the record is not read again to check it.
Fields§
§fields: &'static [&'static str]The keys of the fields it reads.
items: &'static [&'static str]The keys of the collections whose items it counts but does not read into: adding, removing or replacing an item touches it, an edit inside one does not.
Implementations§
Source§impl CheckReads
impl CheckReads
Sourcepub fn touched_by(&self, path: &[Segment]) -> bool
pub fn touched_by(&self, path: &[Segment]) -> bool
Whether an edit at path (from the record) can change what the
check reads.
Auto Trait Implementations§
impl Forget for CheckReads
impl Freeze for CheckReads
impl Move for CheckReads
impl RefUnwindSafe for CheckReads
impl Send for CheckReads
impl Sync for CheckReads
impl Unpin for CheckReads
impl UnsafeUnpin for CheckReads
impl UnwindSafe for CheckReads
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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