bivec 0.1.0

A Rust implementation of Bivec, two vecs in one, with the same length.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*; 

impl <F, S> BiVec<F, S> {
    pub fn as_ptr(&self) -> (*const F, *const S) {
        (self.first.as_ptr(), self.second.as_ptr())
    } 
    pub fn as_mut_ptr(&mut self) -> (*mut F, *mut S) {
        (self.first.as_ptr(), self.second.as_ptr())
    } 
}