SYM2ID

Function SYM2ID 

Source
pub unsafe fn SYM2ID(obj: VALUE) -> ID
Expand description

Convert Symbol to ID (akin to SYM2ID or RB_SYM2ID).

Converts a Symbol VALUE to its internal ID representation.

@param[in] obj A Symbol VALUE. @return The ID corresponding to the Symbol.

ยงSafety

  • obj must be a valid Symbol VALUE
  • For dynamic symbols, this may access the heap