Skip to main content

assert_sized

Function assert_sized 

Source
pub const fn assert_sized<T: Sized>()
Expand description

Asserts at compile time that T implements Sized.

The generic bound supplies the assertion, and the function performs no runtime work.