pub fn to_infos(v: &[InfoRef<'_, &str>]) -> Vec<Info>
Expand description
Converts a slice of InfoRef
s to a vector of Info
s.
ยงExamples
let infos: Vec<Info> = to_infos(&[
StaticInfoRef {
title: "Switch",
short_title: "Switch",
unique_id: "switch",
flags: Default::default(),
type_specific: TypeSpecificInfoRef::Switch {
default: false,
},
},
]);