CodeQL library for Rust
codeql/rust-all 0.2.12 (changelog, source)
Search

Class Raw::SelfParam

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.Raw

Direct 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 indexth attr of this parameter base (0-based).

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