pub struct MonoSet<'tcx> {
pub monos: Vec<Mono<'tcx>>,
}
Fields§
§monos: Vec<Mono<'tcx>>
Implementations§
Source§impl<'tcx> MonoSet<'tcx>
impl<'tcx> MonoSet<'tcx>
pub fn all(identity: &[GenericArg<'tcx>]) -> MonoSet<'tcx>
pub fn empty() -> MonoSet<'tcx>
pub fn count(&self) -> usize
pub fn at(&self, no: usize) -> &Mono<'tcx>
pub fn is_empty(&self) -> bool
pub fn new() -> MonoSet<'tcx>
pub fn insert(&mut self, mono: Mono<'tcx>)
pub fn merge( &mut self, other: &MonoSet<'tcx>, tcx: TyCtxt<'tcx>, ) -> MonoSet<'tcx>
fn filter_unbound_solution(self) -> Self
fn instantiate_unbound(&self, tcx: TyCtxt<'tcx>) -> Self
fn erase_region_var(&mut self, tcx: TyCtxt<'tcx>)
pub fn filter(self, f: impl Fn(&Mono<'tcx>) -> bool) -> Self
fn filter_by_trait_bound(self, fn_did: DefId, tcx: TyCtxt<'tcx>) -> Self
pub fn random_sample<R: Rng>(&mut self, rng: &mut R)
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> Freeze for MonoSet<'tcx>
impl<'tcx> !RefUnwindSafe for MonoSet<'tcx>
impl<'tcx> Send for MonoSet<'tcx>
impl<'tcx> Sync for MonoSet<'tcx>
impl<'tcx> Unpin for MonoSet<'tcx>
impl<'tcx> !UnwindSafe for MonoSet<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more