[][src]Function thinbox::is_unsized

pub const fn is_unsized<T: ?Sized>() -> bool

Returns true if T is unsized and false otherwise.

Notes

This method is required since Rust does not currently support negative or mutually-exclusive trait bounds.

Implementation Details

Unsized types are detected by examining the statically-known size of &mut T.