pub struct CaptureComparisonProjection {
pub identity: Symbol,
pub unstable_fields: BTreeSet<String>,
}Expand description
A named, two-sided declaration of capture fields that are intentionally unstable.
Every ignored path must exist in both captures. The projection identity is itself part of each capture and must match this declaration, so changing a projection never silently preserves comparison equality.
Fields§
§identity: SymbolStable identity recorded in both captures.
unstable_fields: BTreeSet<String>Exact field paths omitted from both sides before comparison.
Implementations§
Source§impl CaptureComparisonProjection
impl CaptureComparisonProjection
Sourcepub fn new(identity: Symbol) -> CaptureComparisonProjection
pub fn new(identity: Symbol) -> CaptureComparisonProjection
Construct a named projection with no unstable fields.
Sourcepub fn ignoring(self, path: impl Into<String>) -> CaptureComparisonProjection
pub fn ignoring(self, path: impl Into<String>) -> CaptureComparisonProjection
Declare one exact, two-sided unstable field path.
Trait Implementations§
Source§impl Clone for CaptureComparisonProjection
impl Clone for CaptureComparisonProjection
Source§fn clone(&self) -> CaptureComparisonProjection
fn clone(&self) -> CaptureComparisonProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptureComparisonProjection
impl Debug for CaptureComparisonProjection
impl Eq for CaptureComparisonProjection
impl StructuralPartialEq for CaptureComparisonProjection
Auto Trait Implementations§
impl Freeze for CaptureComparisonProjection
impl RefUnwindSafe for CaptureComparisonProjection
impl Send for CaptureComparisonProjection
impl Sync for CaptureComparisonProjection
impl Unpin for CaptureComparisonProjection
impl UnsafeUnpin for CaptureComparisonProjection
impl UnwindSafe for CaptureComparisonProjection
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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