Version: dev

component_exists

Stable function · Editing

Tier: stable · Kind: function · Topic: Editing

JuliaTypeScriptPythonRustGo
not exportedcomponentExistscomponent_existscomponent_existsnot exported

Julia

Julia does not export this function.

TypeScript

function componentExists(esmFile: EsmFile, componentId: string): boolean

Utility to check if a component exists in the ESM file

Source

Python

component_exists(file: EsmFile, component_id: str) -> bool

True when component_id names a model or reaction system of file.

Source

Rust

pub fn component_exists(esm_file: &EsmFile, component_id: &str) -> bool

Check if a component exists in the ESM file

Arguments

  • esm_file - The ESM file to check
  • component_id - The component ID to look for

Returns

  • true if the component exists, false otherwise

Source · Rust docs

Go

Go does not export this function.