pub(crate) enum RdPage {
Rendered,
Suppressed,
}Expand description
Whether a doc block’s roxygen text can reach a rendered help page, as far
as the caller knows, which decides what happens to its [...] links.
A block that renders no page sends roxygen2 no link: none of them could
render, and roxygen2 still resolves (and warns on) every one it is handed
(#1818). The reader sees an explicit @noRd in the block itself; the
caller says when its attributes take the page away.
Variants§
Rendered
The block renders a page unless its own tags say @noRd: its links
follow the crate’s ProseLinks setting.
Suppressed
The block renders no page whatever its tags: a noexport entry point,
a class without a page, or a method of one. Every link loses its
brackets (Neutralize::AllLinks).
Implementations§
Source§impl RdPage
impl RdPage
Sourcepub(crate) fn suppressed_if(no_page: bool) -> Self
pub(crate) fn suppressed_if(no_page: bool) -> Self
RdPage::Suppressed when no_page, else RdPage::Rendered.
Trait Implementations§
impl Copy for RdPage
Source§impl Eq for RdPage
impl Eq for RdPage
1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)impl StructuralPartialEq for RdPage
impl TrivialClone for RdPage
Auto Trait Implementations§
impl Freeze for RdPage
impl RefUnwindSafe for RdPage
impl Send for RdPage
impl Sync for RdPage
impl Unpin for RdPage
impl UnsafeUnpin for RdPage
impl UnwindSafe for RdPage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
sized_type_properties)[Self]. Read moreLayout§
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:
Rendered: 0 bytesSuppressed: 0 bytes