visible_fields

Function visible_fields 

Source
pub(crate) fn visible_fields(
    ctx: &CompletionContext<'_>,
    fields: &[Field],
    item: impl HasAttrs + HasCrate + Copy,
) -> Option<(Vec<Field>, bool)>
Expand description

Find all the visible fields in a given list. Returns the list of visible fields, plus a boolean for whether the list is comprehensive (contains no private fields and its item is not marked #[non_exhaustive]).