Skip to main content

TableWriter

Struct TableWriter 

Source
struct TableWriter<'a, 'tcx, 'b> {
    encoder: &'b mut EncodeContext<'a, 'tcx>,
}
Expand description

Helper struct for writing values into TableBuilders.

Fields§

§encoder: &'b mut EncodeContext<'a, 'tcx>

Implementations§

Source§

impl<'a, 'tcx, 'b> TableWriter<'a, 'tcx, 'b>

Source

fn intrinsic<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn is_macro_rules<T>(&mut self, i: LocalDefId, v: T)
where bool: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn type_alias_is_checked<T>(&mut self, i: LocalDefId, v: T)
where bool: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn attr_flags<T>(&mut self, i: LocalDefId, v: T)
where AttrFlags: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn def_path_hashes<T>(&mut self, i: LocalDefId, v: T)
where u64: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn explicit_item_bounds<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(Clause<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn explicit_item_self_bounds<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(Clause<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn inferred_outlives_of<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(Clause<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn explicit_super_clauses_of<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(Clause<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn explicit_implied_clauses_of<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(Clause<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn explicit_implied_const_bounds<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(PolyTraitRef<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn inherent_impls<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<LocalDefId>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn module_children_reexports<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<ModChild>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn ambig_module_children<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn cross_crate_inlinable<T>(&mut self, i: LocalDefId, v: T)
where bool: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn asyncness<T>(&mut self, i: LocalDefId, v: T)
where Asyncness: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn constness<T>(&mut self, i: LocalDefId, v: T)
where Constness: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn safety<T>(&mut self, i: LocalDefId, v: T)
where Safety: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn defaultness<T>(&mut self, i: LocalDefId, v: T)
where Defaultness: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn impl_is_fully_generic_for_reflection<T>(&mut self, i: LocalDefId, v: T)
where bool: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn opt_rpitit_info<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn attributes<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<Attribute>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn module_children_non_reexports<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<LocalDefId>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn associated_item_or_field_def_ids<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<LocalDefId>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn def_kind<T>(&mut self, i: LocalDefId, v: T)
where DefKind: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn visibility<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn def_span<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Span>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn def_ident_span<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Span>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn lookup_stability<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Stability>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn lookup_const_stability<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn lookup_default_body_stability<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn lookup_deprecation_entry<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Deprecation>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn explicit_clauses_of<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<GenericClauses<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn generics_of<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Generics>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn type_of<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<EarlyBinder<'static, Ty<'static>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn variances_of<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<Variance>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn fn_sig<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<EarlyBinder<'static, PolyFnSig<'static>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn codegen_fn_attrs<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn impl_trait_header<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<ImplTraitHeader<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn const_param_default<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<EarlyBinder<'static, Const<'static>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn object_lifetime_default<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn optimized_mir<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Body<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn mir_for_ctfe<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Body<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn trivial_const<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<(ConstValue, Ty<'static>)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn closure_saved_names_of_captured_variables<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn mir_coroutine_witnesses<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<CoroutineLayout<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn promoted_mir<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<IndexVec<Promoted, Body<'static>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn thir_abstract_const<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<EarlyBinder<'static, Const<'static>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn impl_parent<T>(&mut self, i: LocalDefId, v: T)
where RemappedRawDefId: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn const_conditions<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<ConstConditions<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn coerce_unsized_info<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn mir_const_qualif<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn rendered_const<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<String>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn rendered_precise_capturing_args<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn fn_arg_idents<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<Option<Ident>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn coroutine_kind<T>(&mut self, i: LocalDefId, v: T)
where CoroutineKind: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn coroutine_for_closure<T>(&mut self, i: LocalDefId, v: T)
where RemappedRawDefId: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn adt_destructor<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Destructor>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn adt_async_destructor<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn coroutine_by_move_body_def_id<T>(&mut self, i: LocalDefId, v: T)
where RemappedRawDefId: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn eval_static_initializer<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<ConstAllocation<'static>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn trait_def<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<TraitDef>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn expn_that_defined<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<ExpnId>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn default_fields<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<DefId>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn params_in_repr<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<DenseBitSet<u32>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn repr_options<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<ReprOptions>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn def_keys<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<DefKey>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn variant_data<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<VariantData>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn assoc_container<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn macro_definition<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<DelimArgs>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn deduced_param_attrs<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn collect_return_position_impl_trait_in_trait_tys<T>( &mut self, i: LocalDefId, v: T, )
where LazyValue<DefIdMap<EarlyBinder<'static, Ty<'static>>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn assumed_wf_types_for_rpitit<T>(&mut self, i: LocalDefId, v: T)
where LazyArray<(Ty<'static>, Span)>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn opaque_ty_origin<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn anon_const_kind<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn const_of_item<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Option<EarlyBinder<'static, Const<'static>>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn associated_types_for_impl_traits_in_trait_or_impl<T>( &mut self, i: LocalDefId, v: T, )
where LazyValue<DefIdMap<Vec<DefId>>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn args_known_to_outlive_alias_params<T>(&mut self, i: LocalDefId, v: T)
where LazyValue<Vec<(usize, DenseBitSet<u32>)>>: EncodeFrom<'tcx, T>,

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Source

fn mut_restriction<T>(&mut self, i: LocalDefId, v: T)

Records a value into the corresponding TableBuilders field, encoding it in the process when necessary

Auto Trait Implementations§

§

impl<'a, 'tcx, 'b> !DynSend for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> !DynSync for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> !RefUnwindSafe for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> !Send for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> !Sync for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> !UnwindSafe for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> Freeze for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> Unpin for TableWriter<'a, 'tcx, 'b>

§

impl<'a, 'tcx, 'b> UnsafeUnpin for TableWriter<'a, 'tcx, 'b>

Blanket Implementations§

Source§

impl<T> Aligned for T

Source§

const ALIGN: Alignment

Alignment of Self.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, R> CollectAndApply<T, R> for T

Source§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

Source§

type Output = R

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<K> IntoQueryKey<K> for K

Source§

fn into_query_key(self) -> K

Argument conversion from Self to K. This should always be a very cheap conversion, e.g. LocalDefId::to_def_id.
Source§

impl<T> MaybeResult<T> for T

Source§

type Error = !

Source§

fn from(_: Result<T, <T as MaybeResult<T>>::Error>) -> T

Source§

fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

Source§

fn upcast(self, interner: I) -> U

Source§

impl<I, T> UpcastFrom<I, T> for T

Source§

fn upcast_from(from: T, _tcx: I) -> T

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes