Skip to main content

r6_read_only_refusal

Function r6_read_only_refusal 

Source
fn r6_read_only_refusal(
    slot: &SidecarSlot,
    classes: &[String],
    hint: Option<&str>,
) -> String
Expand description

The stop() of an R6 active binding that refuses a value (#1888, #2268), as R6’s own read-only active bindings do: miniextendr_read_only_field with the package’s field_error classes in front, the message naming the field and the object’s R6 class, then the package’s read_only_hint, each %s in it the field’s R name. No call: the binding’s own call is an anonymous function. The R6 class has none of the field-syntax helpers, so the classes and the hint are written in.