Skip to main content

stack_with_optional_base

Function stack_with_optional_base 

Source
pub fn stack_with_optional_base<T>(
    stack: &Rc<RuntimePropertiesStackFrame>,
    base_property: LocalProperty<Option<T>>,
) -> Rc<RuntimePropertiesStackFrame>
Expand description

Returns a stack frame with $base bound to an optional previous common property value, exposing T::default() when the previous layer is None.