pub struct AnyFallback {
pub location: String,
pub reason: String,
}Expand description
A single field infer_with_report opened as any under
allow_any: true. location reads RecordName.label; reason says why
the field could not be given a single precise type. Mirrors Python’s
AnyFallback dataclass.
Fields§
§location: StringThe path location of the field opened as any.
reason: StringDescription of why the field fell back to any.
Trait Implementations§
Source§impl Clone for AnyFallback
impl Clone for AnyFallback
Source§fn clone(&self) -> AnyFallback
fn clone(&self) -> AnyFallback
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 AnyFallback
impl Debug for AnyFallback
impl Eq for AnyFallback
Source§impl PartialEq for AnyFallback
impl PartialEq for AnyFallback
Source§fn eq(&self, other: &AnyFallback) -> bool
fn eq(&self, other: &AnyFallback) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnyFallback
Auto Trait Implementations§
impl Freeze for AnyFallback
impl RefUnwindSafe for AnyFallback
impl Send for AnyFallback
impl Sync for AnyFallback
impl Unpin for AnyFallback
impl UnsafeUnpin for AnyFallback
impl UnwindSafe for AnyFallback
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more