Enum cairo_lang_semantic::items::generics::GenericParam
source · pub enum GenericParam {
Type(GenericParamType),
Const(GenericParamConst),
Impl(GenericParamImpl),
}
Expand description
Generic parameter.
Variants§
Implementations§
source§impl GenericParam
impl GenericParam
pub fn id(&self) -> GenericParamId
pub fn kind(&self) -> GenericKind
pub fn stable_ptr(&self, db: &dyn DefsGroup) -> GenericParamPtr
Trait Implementations§
source§impl Clone for GenericParam
impl Clone for GenericParam
source§fn clone(&self) -> GenericParam
fn clone(&self) -> GenericParam
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 GenericParam
impl Debug for GenericParam
source§impl DebugWithDb<dyn SemanticGroup> for GenericParam
impl DebugWithDb<dyn SemanticGroup> for GenericParam
source§impl Hash for GenericParam
impl Hash for GenericParam
source§impl PartialEq for GenericParam
impl PartialEq for GenericParam
source§fn eq(&self, other: &GenericParam) -> bool
fn eq(&self, other: &GenericParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<GenericParamType, Error> + SemanticRewriter<GenericParamConst, Error> + SemanticRewriter<GenericParamImpl, Error>, Error> SemanticObject<T, Error> for GenericParam
impl<T: SemanticRewriter<GenericParamType, Error> + SemanticRewriter<GenericParamConst, Error> + SemanticRewriter<GenericParamImpl, Error>, Error> SemanticObject<T, Error> for GenericParam
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<GenericParam, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<GenericParam, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: GenericParam ) -> Result<GenericParam, DiagnosticAdded>
source§impl<'a> SemanticRewriter<GenericParam, NoError> for Inference<'a>
impl<'a> SemanticRewriter<GenericParam, NoError> for Inference<'a>
fn rewrite(&mut self, value: GenericParam) -> Result<GenericParam, NoError>
impl Copy for GenericParam
impl Eq for GenericParam
impl StructuralEq for GenericParam
impl StructuralPartialEq for GenericParam
Auto Trait Implementations§
impl RefUnwindSafe for GenericParam
impl Send for GenericParam
impl Sync for GenericParam
impl Unpin for GenericParam
impl UnwindSafe for GenericParam
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.