Skip to main content

AllocatorType

Trait AllocatorType 

Source
pub trait AllocatorType: 'static {
    // Required method
    fn allocator() -> ddwaf_allocator;
}
Expand description

Trait to encode which allocator should be used for deallocation in the type system.

Required Methods§

Source

fn allocator() -> ddwaf_allocator

Get the allocator to use for deallocation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§