Skip to content

std::Memory::new_aligned<T>

new_aligned<T>

Allocates memory for a type with specified alignment (alignment of T) and arguments

Template Parameters

  • T

Signature

fn new_aligned(...args) -> *T requires <T>;