Skip to main content

class_env

Function class_env 

Source
pub(super) fn class_env(
    parsed_impl: &ParsedImpl,
    class_has_no_rd: bool,
    should_export: bool,
) -> Vec<String>
Expand description

The class environment of an S3 or vctrs class, Class <- new.env(...) with its roxygen block: @noRd for a class without a page (class_has_no_rd), else on the class’s topic (the impl’s @rdname when it names one, after the topic’s own block, #1900) and exported when the class is (should_export). It holds S3’s Class$new() and the trait namespaces Class$Trait of both systems.