function get_metadata
@intrinsic(get_metadata)
fn get_metadata<unsized T>(_: &T) -> usize { .. }Expand
Gets the metadata of the reference. This is the vtable pointer for &dyn _, or the array length for &[_]. Returns 0 for all sized types.
@intrinsic(get_metadata)
fn get_metadata<unsized T>(_: &T) -> usize { .. }Gets the metadata of the reference. This is the vtable pointer for &dyn _, or the array length for &[_]. Returns 0 for all sized types.