/// Tries to reserve at least `bytes` Bytes of virtual memory.
Tries to reserve at least `bytes` Bytes of virtual memory.
Tries to reserve at least ` bytes ` Bytes of virtual memory .
pub fn try_reserve(bytes: usize) -> Result<Self, Error> {
        match imp::reserve(bytes) {
            Ok(ptr) => Ok(Self {
                addr: ptr as usize,
                len: bytes,
                allocations: Mutex::new(Allocations { list: Vec::new() }),
            }),
            Err(e) => Err(ErrorKind::Os(e).into()),
        }
    }
pub fn try_reserve ( bytes : usize ) -> Result < Self , Error > { match imp :: reserve ( bytes ) { Ok ( ptr ) => Ok ( Self { addr : ptr as usize , len : bytes , allocations : Mutex :: new ( Allocations { list : Vec :: new ( ) } ) , } ) , Err ( e ) => Err ( ErrorKind :: Os ( e ) . into ( ) ) , } }
Tries to reserve at least `bytes` Bytes of virtual memory.
Tries to reserve at least ` bytes ` Bytes of virtual memory .
bytes
usize