pub struct ChangeAssertion<'a> { /* private fields */ }Implementations§
Source§impl<'a> ChangeAssertion<'a>
impl<'a> ChangeAssertion<'a>
pub fn new(change: &'a Change) -> Self
pub fn has_diffs(&self, count: usize) -> &Self
pub fn is_empty(&self) -> &Self
pub fn has_insert(&self) -> &Self
pub fn has_update(&self) -> &Self
pub fn has_remove(&self) -> &Self
pub fn diff_at(&self, index: usize) -> DiffAssertion<'_>
pub fn inserts(&self) -> Vec<&Columns>
pub fn updates(&self) -> Vec<(&Columns, &Columns)>
pub fn removes(&self) -> Vec<&Columns>
pub fn has_inserts(&self, count: usize) -> &Self
pub fn has_updates(&self, count: usize) -> &Self
pub fn has_removes(&self, count: usize) -> &Self
Auto Trait Implementations§
impl<'a> Freeze for ChangeAssertion<'a>
impl<'a> RefUnwindSafe for ChangeAssertion<'a>
impl<'a> Send for ChangeAssertion<'a>
impl<'a> Sync for ChangeAssertion<'a>
impl<'a> Unpin for ChangeAssertion<'a>
impl<'a> UnsafeUnpin for ChangeAssertion<'a>
impl<'a> UnwindSafe for ChangeAssertion<'a>
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