Sha256: 971c1cd8ea4d99954ce403249c9bd755fcf6a4c19dec7b5d229db92ff5e7ef5b

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

#[repr(C)]
pub struct RubyArray {
  len: libc::size_t,
  data: *const libc::c_void,
}

impl RubyArray {
  #[allow(dead_code)]
  fn from_vec<T>(vec: Vec<T>) -> RubyArray {
    let array = RubyArray { 
      data: vec.as_ptr() as *const libc::c_void, 
        len: vec.len() as libc::size_t 
    };
    mem::forget(vec);
    array
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
faster_path-0.1.5 src/ruby_array.rs
faster_path-0.1.4 src/ruby_array.rs
faster_path-0.1.3 src/ruby_array.rs
faster_path-0.1.2 src/ruby_array.rs
faster_path-0.1.1 src/ruby_array.rs
faster_path-0.1.0 src/ruby_array.rs
faster_path-0.0.9 src/ruby_array.rs
faster_path-0.0.8 src/ruby_array.rs