pub fn from_call_stack_elements(
        frames: Vec<CallStackElement>,
        max_height: usize,
    ) -> Result<Self, RuntimeStackOverflow> {
        if frames.len() > max_height {
            Err(RuntimeStackOverflow)
        } else {
            Ok(RuntimeStack { frames, max_height })
        }
    }
// It is here for backwards compatibility only.
/// Creates a stack from the previous stack format.
It is here for backwards compatibility only.
Creates a stack from the previous stack format.
It is here for backwards compatibility only . Creates a stack from the previous stack format .
pub fn from_call_stack_elements(
        frames: Vec<CallStackElement>,
        max_height: usize,
    ) -> Result<Self, RuntimeStackOverflow> {
        if frames.len() > max_height {
            Err(RuntimeStackOverflow)
        } else {
            Ok(RuntimeStack { frames, max_height })
        }
    }
pub fn from_call_stack_elements ( frames : Vec < CallStackElement > , max_height : usize , ) -> Result < Self , RuntimeStackOverflow > { if frames . len ( ) > max_height { Err ( RuntimeStackOverflow ) } else { Ok ( RuntimeStack { frames , max_height } ) } }
It is here for backwards compatibility only.
It is here for backwards compatibility only .
frames
Vec<CallStackElement>
max_height
usize
frames
Vec<CallStackElement>
max_height
usize