pub struct Statistics<'tcx> {
pub pub_non_generic_api: HashSet<DefId>,
pub pub_generic_api: HashSet<DefId>,
pub pub_unsafe_api: HashSet<DefId>,
pub unsafe_block: Vec<Block<'tcx>>,
}
Fields§
§pub_non_generic_api: HashSet<DefId>
§pub_generic_api: HashSet<DefId>
§pub_unsafe_api: HashSet<DefId>
§unsafe_block: Vec<Block<'tcx>>
Implementations§
Source§impl<'tcx> Statistics<'tcx>
impl<'tcx> Statistics<'tcx>
pub fn total_api_count(&self) -> usize
pub fn generic_api_count(&self) -> usize
pub fn num_unsafe_api(&self) -> usize
pub fn num_unsafe_block(&self) -> usize
pub fn info(&self) -> CrateSafetyInfo
Trait Implementations§
Source§impl<'tcx> Default for Statistics<'tcx>
impl<'tcx> Default for Statistics<'tcx>
Source§fn default() -> Statistics<'tcx>
fn default() -> Statistics<'tcx>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'tcx> Freeze for Statistics<'tcx>
impl<'tcx> RefUnwindSafe for Statistics<'tcx>
impl<'tcx> Send for Statistics<'tcx>
impl<'tcx> Sync for Statistics<'tcx>
impl<'tcx> Unpin for Statistics<'tcx>
impl<'tcx> UnwindSafe for Statistics<'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