add_built_in_const

Function add_built_in_const 

Source
pub fn add_built_in_const(
    identifier: &'static str,
    value: Value,
) -> Option<Value>
Expand description

Add a constant to the built-in ones.

If a constant with the same identifier didn’t exist, None is returned.

If it existed, the value is updated and the old value is returned.