pub fn allocate(&mut self, size: u64, alignment: u64,
                    element_alignment: u64, lifetime: Lifetime, reason: &str)
                    -> Option<Block>
    {
        match lifetime {
            Lifetime::Permanent =>
                self.allocate_perm(size, alignment, element_alignment, reason),
            Lifetime::Temporary =>
                self.allocate_normal(size, alignment, element_alignment, reason)
        }
    }
/// Allocate a block on the chunk, with the given size, alignment, and reason.
/// element_alignment specifies alignment of each array element.
/// If permanent, block is efficiently allocated and cannot be deallocated.
Allocate a block on the chunk, with the given size, alignment, and reason.
element_alignment specifies alignment of each array element.
If permanent, block is efficiently allocated and cannot be deallocated.
Allocate a block on the chunk with the given size alignment and reason . element_alignment specifies alignment of each array element . If permanent block is efficiently allocated and cannot be deallocated .
pub fn allocate(&mut self, size: u64, alignment: u64,
                    element_alignment: u64, lifetime: Lifetime, reason: &str)
                    -> Option<Block>
    {
        match lifetime {
            Lifetime::Permanent =>
                self.allocate_perm(size, alignment, element_alignment, reason),
            Lifetime::Temporary =>
                self.allocate_normal(size, alignment, element_alignment, reason)
        }
    }
pub fn allocate ( & mut self , size : u64 , alignment : u64 , element_alignment : u64 , lifetime : Lifetime , reason : & str ) -> Option < Block > { match lifetime { Lifetime :: Permanent => self . allocate_perm ( size , alignment , element_alignment , reason ) , Lifetime :: Temporary => self . allocate_normal ( size , alignment , element_alignment , reason ) } }
Allocate a block on the chunk, with the given size, alignment, and reason.
Allocate a block on the chunk with the given size alignment and reason .
&mut self
size
u64
alignment
u64
element_alignment
u64
lifetime
Lifetime
reason
&str
&mut self
size
u64
alignment
u64
element_alignment
u64
lifetime
Lifetime
reason
&str