Skip to main content

resolve_visibility

Function resolve_visibility 

Source
pub(crate) fn resolve_visibility(
    marker: Option<bool>,
    attr: Option<bool>,
    shape_default: bool,
    span: Span,
) -> Result<bool>
Expand description

Resolve the wrapper’s visibility from the three sources, most explicit first: a return-type marker, then the invisible / visible attribute, then the shape default. A marker and an attribute that disagree are an error at span.