component_exists
Stable function · Editing
Tier: stable · Kind: function · Topic: Editing
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
| not exported | componentExists | component_exists | component_exists | not 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
Python
component_exists(file: EsmFile, component_id: str) -> bool
True when component_id names a model or reaction system of file.
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 checkcomponent_id- The component ID to look for
Returns
trueif the component exists,falseotherwise
Go
Go does not export this function.