const_deallocate

const_deallocate (컴파일 타임 메모리 해제)

컴파일 타임에 할당된 메모리를 해제하는 내장 함수예요.

출처: Rust 공식 문서

본문

컴파일 타임에 intrinsics::const_allocate 로 할당된 메모리를 해제해요. 런타임에는 아무것도 하지 않아요. align 인자는 2의 거듭제곱이어야 해요.

pub const unsafe fn const_deallocate(_ptr: *mut u8 , _size: usize , _align: usize )

더 알아보기 (Learn more)

Rust 공식 문서