pub struct MetaMatchInfo {
pub matched_type: Option<MetaType>,
pub converged_arm_type: Option<MetaType>,
pub pattern_kinds: Vec<MetaPatternKind>,
}Expand description
Staged semantic facts for a meta match statement.
Fields§
§matched_type: Option<MetaType>Best-known type of the matched value.
converged_arm_type: Option<MetaType>Best-known converged type across all match arms.
pattern_kinds: Vec<MetaPatternKind>Broad categories of the arm patterns.
Trait Implementations§
Source§impl Clone for MetaMatchInfo
impl Clone for MetaMatchInfo
Source§fn clone(&self) -> MetaMatchInfo
fn clone(&self) -> MetaMatchInfo
Returns a copy of the value. Read more
1.0.0 · 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 MetaMatchInfo
impl Debug for MetaMatchInfo
Source§impl PartialEq for MetaMatchInfo
impl PartialEq for MetaMatchInfo
impl Eq for MetaMatchInfo
impl StructuralPartialEq for MetaMatchInfo
Auto Trait Implementations§
impl Freeze for MetaMatchInfo
impl RefUnwindSafe for MetaMatchInfo
impl Send for MetaMatchInfo
impl Sync for MetaMatchInfo
impl Unpin for MetaMatchInfo
impl UnwindSafe for MetaMatchInfo
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
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.§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