Skip to main content

try_push

Function try_push 

Source
pub fn try_push<T>(v: &mut Vec<T>, x: T) -> RtResult<()>
Expand description

Pushes x onto a vector a native is building, raising a MemoryError panic if the vector cannot grow. There is no collection and retry: the vector may hold values that nothing else roots.