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§
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
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.