Condition in rustdoc::passes - Rust (original) (raw)

pub(crate) enum Condition {
    Always,
    WhenDocumentPrivate,
    WhenNotDocumentPrivate,
    WhenNotDocumentHidden,
}

Expand description

How to decide whether to run a conditional pass.

§

§

When --document-private-items is passed.

§

When --document-private-items is not passed.

§

When --document-hidden-items is not passed.

§

§

§

§

§

§

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: 1 byte

Size for each variant: