Struct rustc_typeck::hir::QSelf
[−]
[src]
pub struct QSelf {
pub ty: P<Ty>,
pub position: usize,
}Unstable (
rustc_private)The explicit Self type in a "qualified path". The actual
path, including the trait and the associated item, is stored
separately. position represents the index of the associated
item qualified with this Self type.
<HirVec<T> as a::b::Trait>::AssociatedItem ^~~~~ ~~~~~~~~~~~~~~^ ty position = 3 <HirVec<T>>::AssociatedItem ^~~~~ ^ ty position = 0
Fields
ty: P<Ty>
Unstable (
rustc_private)position: usize
Unstable (
rustc_private)Trait Implementations
Derived Implementations
impl Debug for QSelf
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for QSelf
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for QSelf
impl Encodable for QSelf
impl Eq for QSelf
impl PartialEq<QSelf> for QSelf
fn eq(&self, __arg_0: &QSelf) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &QSelf) -> bool
This method tests for !=.
impl Clone for QSelf
fn clone(&self) -> QSelf
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more