Struct rustdoc::json::JsonRenderer [−][src]
Fields
tcx: TyCtxt<'tcx>index: Rc<RefCell<FxHashMap<Id, Item>>>A mapping of IDs that contains all local items for this crate which gets output as a top level field of the JSON blob.
out_path: PathBufThe directory where the blob will be written to.
cache: Rc<Cache>Implementations
impl JsonRenderer<'_>[src]
pub(super) fn convert_item(&self, item: Item) -> Option<Item>[src]
fn convert_span(&self, span: Span) -> Option<Span>[src]
fn convert_visibility(&self, v: Visibility) -> Visibility[src]
impl<'tcx> JsonRenderer<'tcx>[src]
fn sess(&self) -> &'tcx Session[src]
fn get_trait_implementors(&mut self, id: DefId) -> Vec<Id>[src]
fn get_impls(&mut self, id: DefId) -> Vec<Id>[src]
fn get_trait_items(&mut self) -> Vec<(Id, Item)>[src]
Trait Implementations
impl<'tcx> Clone for JsonRenderer<'tcx>[src]
fn clone(&self) -> JsonRenderer<'tcx>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx>[src]
fn descr() -> &'static str[src]
fn init(
krate: Crate,
options: RenderOptions,
_edition: Edition,
cache: Cache,
tcx: TyCtxt<'tcx>
) -> Result<(Self, Crate), Error>[src]
krate: Crate,
options: RenderOptions,
_edition: Edition,
cache: Cache,
tcx: TyCtxt<'tcx>
) -> Result<(Self, Crate), Error>
fn make_child_renderer(&self) -> Self[src]
fn item(&mut self, item: Item) -> Result<(), Error>[src]
Inserts an item into the index. This should be used rather than directly calling insert on the hashmap because certain items (traits and types) need to have their mappings for trait implementations filled out before they’re inserted.
fn mod_item_in(&mut self, item: &Item, _module_name: &str) -> Result<(), Error>[src]
fn mod_item_out(&mut self, _item_name: &str) -> Result<(), Error>[src]
fn after_krate(&mut self, _krate: &Crate, _diag: &Handler) -> Result<(), Error>[src]
fn cache(&self) -> &Cache[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for JsonRenderer<'tcx>
impl<'tcx> !Send for JsonRenderer<'tcx>
impl<'tcx> !Sync for JsonRenderer<'tcx>
impl<'tcx> Unpin for JsonRenderer<'tcx>
impl<'tcx> !UnwindSafe for JsonRenderer<'tcx>
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<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,