Skip to main content

struct_classes

Function struct_classes 

Source
fn struct_classes(input: &DeriveInput) -> Result<Option<Vec<LitStr>>>
Expand description

The classes a struct’s #[into_list(class = ...)] gives its list, if any.

Takes class = "a" or class = ["a", "b"]. Refuses an empty list, an empty name, a repeated class option, any other option, and "factor": R’s class<- raises an error for a factor class on anything but an integer vector.