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)
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 Visibilityimpl Send for Visibilityimpl Sync for Visibilityimpl Unpin for Visibilityimpl UnwindSafe for VisibilityBlanket 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) -> VLayout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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