Struct rustc::ty::Method [] [src]

pub struct Method<'tcx> {
    pub name: Name,
    pub generics: Generics<'tcx>,
    pub predicates: GenericPredicates<'tcx>,
    pub fty: &'tcx BareFnTy<'tcx>,
    pub explicit_self: ExplicitSelfCategory,
    pub vis: Visibility,
    pub defaultness: Defaultness,
    pub def_id: DefId,
    pub container: ImplOrTraitItemContainer,
}
Unstable (rustc_private)

Fields

name: Name
Unstable (rustc_private)
generics: Generics<'tcx>
Unstable (rustc_private)
predicates: GenericPredicates<'tcx>
Unstable (rustc_private)
fty: &'tcx BareFnTy<'tcx>
Unstable (rustc_private)
explicit_self: ExplicitSelfCategory
Unstable (rustc_private)
vis: Visibility
Unstable (rustc_private)
defaultness: Defaultness
Unstable (rustc_private)
def_id: DefId
Unstable (rustc_private)
container: ImplOrTraitItemContainer
Unstable (rustc_private)

Methods

impl<'tcx> Method<'tcx>
[src]

fn new(name: Name, generics: Generics<'tcx>, predicates: GenericPredicates<'tcx>, fty: &'tcx BareFnTy<'tcx>, explicit_self: ExplicitSelfCategory, vis: Visibility, defaultness: Defaultness, def_id: DefId, container: ImplOrTraitItemContainer) -> Method<'tcx>

fn container_id(&self) -> DefId

Trait Implementations

impl<'tcx> PartialEq for Method<'tcx>
[src]

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'tcx> Eq for Method<'tcx>
[src]

impl<'tcx> Hash for Method<'tcx>
[src]

fn hash<H: Hasher>(&self, s: &mut H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

Derived Implementations

impl<'tcx> Debug for Method<'tcx>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'tcx> Clone for Method<'tcx>
[src]

fn clone(&self) -> Method<'tcx>

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