Skip to main content

no_constructor_guard

Function no_constructor_guard 

Source
pub(crate) fn no_constructor_guard(class_name: &str) -> String
Expand description

The first line of R6’s initialize and S7’s constructor for a class without a constructor: called without a .ptr, they raise an error rather than build an object holding no pointer. The factories and other classes’ methods always pass the .ptr.