[−][src]Struct rustdoc::passes::calculate_doc_coverage::ItemCount

pub(in passes::calculate_doc_coverage) struct ItemCount {
    total: u64,
    with_docs: u64,
    total_examples: u64,
    with_examples: u64,
}

Fields

total: u64with_docs: u64total_examples: u64with_examples: u64

Implementations

impl ItemCount[src]

pub(in passes::calculate_doc_coverage) fn count_item(
    &mut self,
    has_docs: bool,
    has_doc_example: bool,
    should_have_doc_examples: bool,
    should_have_docs: bool
)
[src]

pub(in passes::calculate_doc_coverage) fn percentage(
    &self
) -> Option<f64>
[src]

pub(in passes::calculate_doc_coverage) fn examples_percentage(
    &self
) -> Option<f64>
[src]

Trait Implementations

impl AddAssign<ItemCount> for ItemCount[src]

impl Clone for ItemCount[src]

impl Copy for ItemCount[src]

impl Debug for ItemCount[src]

impl Default for ItemCount[src]

impl Serialize for ItemCount[src]

impl Sub<ItemCount> for ItemCount[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for ItemCount

impl Send for ItemCount

impl Sync for ItemCount

impl Unpin for ItemCount

impl UnwindSafe for ItemCount

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithConstness for T[src]