pub struct RecipeIndex {
pub parts: IndexMap<String, PartSpec>,
/* private fields */
}Expand description
The part table of one catalog view plus the catalog defaults of every recipe prop: what the validator and the node resolver look up.
Fields§
§parts: IndexMap<String, PartSpec>Implementations§
Source§impl RecipeIndex
impl RecipeIndex
pub fn new(view: &CatalogView) -> RecipeIndex
Sourcepub fn core() -> Arc<RecipeIndex> ⓘ
pub fn core() -> Arc<RecipeIndex> ⓘ
The core catalog’s index, built once per process.
pub fn part_spec(&self, component: &str) -> Option<&PartSpec>
Sourcepub fn native_recipe_props(&self, component: &str, props: &Props) -> Props
pub fn native_recipe_props(&self, component: &str, props: &Props) -> Props
The recipe props a NATIVE node answers to: each spec prop’s authored
value, else the catalog default, skipping undefined (TS
nativeRecipeProps; null counts as missing like ??).
Trait Implementations§
Source§impl Clone for RecipeIndex
impl Clone for RecipeIndex
Auto Trait Implementations§
impl Freeze for RecipeIndex
impl RefUnwindSafe for RecipeIndex
impl Send for RecipeIndex
impl Sync for RecipeIndex
impl Unpin for RecipeIndex
impl UnsafeUnpin for RecipeIndex
impl UnwindSafe for RecipeIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more