[−][src]Struct rustdoc::json::JsonRenderer
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.
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 JsonRenderer<'_>[src]
fn sess(&self) -> &Session[src]
fn get_trait_implementors(&mut self, id: DefId, cache: &Cache) -> Vec<Id>[src]
fn get_impls(&mut self, id: DefId, cache: &Cache) -> Vec<Id>[src]
fn get_trait_items(&mut self, cache: &Cache) -> Vec<(Id, Item)>[src]
Trait Implementations
impl<'tcx> Clone for JsonRenderer<'tcx>[src]
pub 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]
pub(crate) fn init(
krate: Crate,
options: RenderOptions,
_render_info: RenderInfo,
_edition: Edition,
_cache: &mut Cache,
tcx: TyCtxt<'tcx>
) -> Result<(Self, Crate), Error>[src]
krate: Crate,
options: RenderOptions,
_render_info: RenderInfo,
_edition: Edition,
_cache: &mut Cache,
tcx: TyCtxt<'tcx>
) -> Result<(Self, Crate), Error>
pub(crate) fn item(&mut self, item: Item, cache: &Cache) -> 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.
pub(crate) fn mod_item_in(
&mut self,
item: &Item,
_module_name: &str,
cache: &Cache
) -> Result<(), Error>[src]
&mut self,
item: &Item,
_module_name: &str,
cache: &Cache
) -> Result<(), Error>
pub(crate) fn mod_item_out(&mut self, _item_name: &str) -> Result<(), Error>[src]
pub(crate) fn after_krate(
&mut self,
krate: &Crate,
cache: &Cache
) -> Result<(), Error>[src]
&mut self,
krate: &Crate,
cache: &Cache
) -> Result<(), Error>
pub(crate) fn after_run(&mut self, _diag: &Handler) -> Result<(), Error>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for JsonRenderer<'tcx>[src]
impl<'tcx> !Send for JsonRenderer<'tcx>[src]
impl<'tcx> !Sync for JsonRenderer<'tcx>[src]
impl<'tcx> Unpin for JsonRenderer<'tcx>[src]
impl<'tcx> !UnwindSafe for JsonRenderer<'tcx>[src]
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, 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>,