INTERNAL: Do not use.
A self parameter. For example self in:
struct X;
impl X {
fn one(&self) {}
fn two(&mut self) {}
fn three(self) {}
fn four(mut self) {}
fn five<'a>(&'a self) {}
}
Import path
import codeql.rust.elements.internal.generated.RawDirect supertypes
Indirect supertypes
Predicates
| getLifetime | Gets the lifetime of this self parameter, if it exists. |
| getName | Gets the name of this self parameter, if it exists. |
| isMut | Holds if this self parameter is mut. |
| isRef | Holds if this self parameter is reference. |
| toString |
Inherited predicates
| getAttr | Gets the | from ParamBase |
| getNumberOfAttrs | Gets the number of attrs of this parameter base. | from ParamBase |
| getTypeRepr | Gets the type representation of this parameter base, if it exists. | from ParamBase |