#[derive(ScribeString)]
{
// Attributes available to this derive:
#[enumscribe]
}
Expand description
Derives enumscribe::ScribeString for an enum. This allows the enum to be converted to
a String using the scribe() method.
This behaves almost identically to ScribeCowStr, except the
return type is String instead of Cow<'static, str>.
Since a String is returned, an allocation must always be performed, which is wasteful.
ScribeCowStr should be preferred because it avoids unnecessary
allocations.