[−][src]Struct rustc_middle::ty::flags::FlagComputation
Fields
flags: TypeFlagsouter_exclusive_binder: DebruijnIndexImplementations
impl FlagComputation[src]
pub(in ty::flags) fn new(
) -> FlagComputation[src]
) -> FlagComputation
pub fn for_kind(kind: &TyKind<'_>) -> FlagComputation[src]
pub fn for_predicate(kind: PredicateKind<'_>) -> FlagComputation[src]
pub fn for_const(c: &Const<'_>) -> TypeFlags[src]
pub(in ty::flags) fn add_flags(
&mut self,
flags: TypeFlags
)[src]
&mut self,
flags: TypeFlags
)
pub(in ty::flags) fn add_bound_var(
&mut self,
binder: DebruijnIndex
)[src]
&mut self,
binder: DebruijnIndex
)
indicates that self refers to something at binding level binder
pub(in ty::flags) fn add_exclusive_binder(
&mut self,
exclusive_binder: DebruijnIndex
)[src]
&mut self,
exclusive_binder: DebruijnIndex
)
indicates that self refers to something inside binding
level binder -- not bound by binder, but bound by the next
binder internal to it
pub(in ty::flags) fn bound_computation<T, F>(
&mut self,
value: Binder<T>,
f: F
) where
F: FnOnce(&mut Self, T), [src]
&mut self,
value: Binder<T>,
f: F
) where
F: FnOnce(&mut Self, T),
Adds the flags/depth from a set of types that appear within the current type, but within a region binder.
pub(in ty::flags) fn add_kind(
&mut self,
kind: &TyKind<'_>
)[src]
&mut self,
kind: &TyKind<'_>
)
pub(in ty::flags) fn add_predicate_kind(
&mut self,
kind: PredicateKind<'_>
)[src]
&mut self,
kind: PredicateKind<'_>
)
pub(in ty::flags) fn add_predicate_atom(
&mut self,
atom: PredicateAtom<'_>
)[src]
&mut self,
atom: PredicateAtom<'_>
)
pub(in ty::flags) fn add_ty(
&mut self,
ty: Ty<'_>
)[src]
&mut self,
ty: Ty<'_>
)
pub(in ty::flags) fn add_tys(
&mut self,
tys: &[Ty<'_>]
)[src]
&mut self,
tys: &[Ty<'_>]
)
pub(in ty::flags) fn add_region(
&mut self,
r: Region<'_>
)[src]
&mut self,
r: Region<'_>
)
pub(in ty::flags) fn add_const(
&mut self,
c: &Const<'_>
)[src]
&mut self,
c: &Const<'_>
)
pub(in ty::flags) fn add_existential_projection(
&mut self,
projection: &ExistentialProjection<'_>
)[src]
&mut self,
projection: &ExistentialProjection<'_>
)
pub(in ty::flags) fn add_projection_ty(
&mut self,
projection_ty: ProjectionTy<'_>
)[src]
&mut self,
projection_ty: ProjectionTy<'_>
)
pub(in ty::flags) fn add_substs(
&mut self,
substs: &[GenericArg<'_>]
)[src]
&mut self,
substs: &[GenericArg<'_>]
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FlagComputation
impl Send for FlagComputation
impl Sync for FlagComputation
impl Unpin for FlagComputation
impl UnwindSafe for FlagComputation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.