Enum rustdoc::clean::types::Visibility [−][src]
pub(crate) enum Visibility {
Public,
Inherited,
Restricted(DefId),
}
Variants
pub
Visibility inherited from parent.
For example, this is the visibility of private items and of enum variants.
Restricted(DefId)
pub(crate)
, pub(super)
, or pub(in path::to::somewhere)
Tuple Fields of Restricted
0: DefId
Implementations
pub(crate) fn print_with_space<'a, 'tcx: 'a>(
self,
item_did: ItemId,
cx: &'a Context<'tcx>
) -> impl Display + 'a + Captures<'tcx>
This function is the same as print_with_space, except that it renders no links. It’s used for macros’ rendered source view, which is syntax highlighted and cannot have any HTML in it.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Layout
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: 8 bytes
Size for each variant:
Public
: 0 bytesInherited
: 0 bytesRestricted
: 8 bytes