#[non_exhaustive]pub struct ReceiverFact {
pub kind: ReceiverKind,
pub package: Option<String>,
pub shape: Option<ShapeFact>,
pub confidence: Confidence,
pub evidence: Vec<TypeEvidence>,
pub freshness: ReceiverFactFreshness,
pub dynamic_boundary: Option<DynamicBoundary>,
pub source_range: Option<(usize, usize)>,
pub fallback_state: ReceiverFallbackState,
}Expand description
Trust-bounded evidence about a method-call receiver.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: ReceiverKindClassified receiver kind.
package: Option<String>Inferred package for method ranking, when available.
shape: Option<ShapeFact>Structural shape fact associated with the receiver, when available.
confidence: ConfidenceConfidence assigned to this receiver fact.
evidence: Vec<TypeEvidence>Evidence used to classify the receiver.
freshness: ReceiverFactFreshnessFreshness of the receiver evidence.
dynamic_boundary: Option<DynamicBoundary>Dynamic boundary that prevents precise method completion, when present.
source_range: Option<(usize, usize)>Source-backed byte range for the receiver expression.
fallback_state: ReceiverFallbackStateFallback posture completion must preserve for this receiver.
Trait Implementations§
Source§impl Clone for ReceiverFact
impl Clone for ReceiverFact
Source§fn clone(&self) -> ReceiverFact
fn clone(&self) -> ReceiverFact
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 ReceiverFact
impl Debug for ReceiverFact
Source§impl PartialEq for ReceiverFact
impl PartialEq for ReceiverFact
Source§fn eq(&self, other: &ReceiverFact) -> bool
fn eq(&self, other: &ReceiverFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReceiverFact
Auto Trait Implementations§
impl Freeze for ReceiverFact
impl RefUnwindSafe for ReceiverFact
impl Send for ReceiverFact
impl Sync for ReceiverFact
impl Unpin for ReceiverFact
impl UnsafeUnpin for ReceiverFact
impl UnwindSafe for ReceiverFact
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