pub struct PatternRowVec {
pub inner: Vec<SimplifiedPattern>,
}
Fields§
§inner: Vec<SimplifiedPattern>
Implementations§
Source§impl PatternRowVec
impl PatternRowVec
pub fn new(inner: Vec<SimplifiedPattern>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn pats(&self) -> &[SimplifiedPattern]
pub fn head(&self) -> Option<&SimplifiedPattern>
pub fn phi_specialize( &self, db: &dyn AnalyzerDb, ctor: ConstructorKind, ) -> Vec<Self>
pub fn swap(&mut self, a: usize, b: usize)
pub fn d_specialize(&self, _db: &dyn AnalyzerDb) -> Vec<Self>
pub fn collect_column_ctors(&self, column: usize) -> Vec<ConstructorKind>
Trait Implementations§
Source§impl Clone for PatternRowVec
impl Clone for PatternRowVec
Source§fn clone(&self) -> PatternRowVec
fn clone(&self) -> PatternRowVec
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 PatternRowVec
impl Debug for PatternRowVec
Source§impl PartialEq for PatternRowVec
impl PartialEq for PatternRowVec
impl Eq for PatternRowVec
impl StructuralPartialEq for PatternRowVec
Auto Trait Implementations§
impl Freeze for PatternRowVec
impl RefUnwindSafe for PatternRowVec
impl Send for PatternRowVec
impl Sync for PatternRowVec
impl Unpin for PatternRowVec
impl UnwindSafe for PatternRowVec
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§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
§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.