pub enum GenericType {
Array,
String,
Map,
}
Variants§
Implementations§
Source§impl GenericType
impl GenericType
pub fn name(&self) -> SmolStr
pub fn params(&self) -> Vec<GenericParam>
pub fn apply(&self, db: &dyn AnalyzerDb, args: &[GenericArg]) -> Option<TypeId>
Trait Implementations§
Source§impl AsRef<str> for GenericType
impl AsRef<str> for GenericType
Source§impl Clone for GenericType
impl Clone for GenericType
Source§fn clone(&self) -> GenericType
fn clone(&self) -> GenericType
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 GenericType
impl Debug for GenericType
Source§impl FromStr for GenericType
impl FromStr for GenericType
Source§impl Hash for GenericType
impl Hash for GenericType
Source§impl IntoEnumIterator for GenericType
impl IntoEnumIterator for GenericType
type Iterator = GenericTypeIter
fn iter() -> GenericTypeIter ⓘ
Source§impl Ord for GenericType
impl Ord for GenericType
Source§fn cmp(&self, other: &GenericType) -> Ordering
fn cmp(&self, other: &GenericType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GenericType
impl PartialEq for GenericType
Source§impl PartialOrd for GenericType
impl PartialOrd for GenericType
Source§impl TryFrom<&str> for GenericType
impl TryFrom<&str> for GenericType
impl Copy for GenericType
impl Eq for GenericType
impl StructuralPartialEq for GenericType
Auto Trait Implementations§
impl Freeze for GenericType
impl RefUnwindSafe for GenericType
impl Send for GenericType
impl Sync for GenericType
impl Unpin for GenericType
impl UnwindSafe for GenericType
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> Comparable<K> for Q
impl<Q, K> Comparable<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.§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.