1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#[cfg(target_os = "ios")]
pub fn new_array<T: Clone>() -> Vec<T> {
    Vec::new()
}

#[cfg(target_os = "ios")]
pub fn push_to<T: Clone>(array: &mut Vec<T>, element: &T) {
    array.push(element.clone());
}

#[cfg(target_os = "ios")]
pub fn element_at<T: Clone>(array: Vec<T>, index: usize) -> T {
    array[index].clone()
}