Skip to main content

install

Function install 

Source
pub fn install(lookup: &mut OpLookup)
Expand description

Installs seven record schemas and the complete exact geometry signature table.

  • Precondition: this library has not already been installed on lookup.
  • Precondition: lookup has no record schemas named Point2D, Vector2D, Size2D, Rect, Box2D, Angle, or Transform2D.
  • Precondition: lookup has no operation with the same name and operand identities as a signature in the supported table. Other overloads of those names may already be installed.
  • Postcondition: unrelated signatures, including scalar min/max, remain available.
  • Complexity: O(s²) time and O(s) space in the total installed signatures.

§Examples

let mut lookup = cel_parser::OpLookup::new();
cel_euclid::install(&mut lookup);
assert!(lookup.record_schema("Rect").is_some());