Method lrs::vec::Vec::try_push

Tries to append a copyable element to the vector.

Syntax

impl<T, H> Vec<T, H>
    where H: Allocator,
{
    fn try_push(&mut self, val: T) -> Result<(), Errno>
        where T: Copy,
}

Arguments

NameDescription
val

The element to append.