Struct rustc::middle::ty::BinderExperimental [-]  [+] [src]

pub struct Binder<T> {
    pub value: T,
}

Binder serves as a synthetic binder for lifetimes. It is used when we wish to replace the escaping higher-ranked lifetimes in a type or something else that is not itself a binder (this is because the replace_late_bound_regions function replaces all lifetimes bound by the binder supplied to it; but a type is not a binder, so you must introduce an artificial one).

Fields

value

Trait Implementations

impl<'tcx, T: TypeFoldable<'tcx>> TypeFoldable<'tcx> for Binder<T>

fn fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Binder<T>

impl<'tcx, T: TypeFoldable<'tcx> + Repr<'tcx>> HigherRankedFoldable<'tcx> for Binder<T>

fn fold_contents<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Binder<T>

impl<'tcx, T: Repr<'tcx>> Repr<'tcx> for Binder<T>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<T: Show> Show for Binder<T>

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

impl<__S: Writer, T: Hash<__S>> Hash<__S> for Binder<T>

fn hash(&self, __arg_0: &mut __S)

impl<T: Eq> Eq for Binder<T>

fn assert_receiver_is_total_eq(&self)

impl<T: PartialEq> PartialEq for Binder<T>

fn eq(&self, __arg_0: &Binder<T>) -> bool

fn ne(&self, __arg_0: &Binder<T>) -> bool

impl<T: Clone> Clone for Binder<T>

fn clone(&self) -> Binder<T>

fn clone_from(&mut self, source: &Self)