conformal_component::parameters

Function to_infos

Source
pub fn to_infos(v: &[InfoRef<'_, &str>]) -> Vec<Info>
Expand description

Converts a slice of InfoRefs to a vector of Infos.

ยง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,
    },
  },
]);