[−][src]Macro null_terminated::nul_of_ref
Constructs a &Nul<&T>
.
Examples
static INTS: &Nul<&u32> = nul_of_ref![&0, &1, &2, &3]; static STRS: &Nul<&NulStr> = nul_of_ref![str0_utf8!("foo"), str0_utf8!("bar"), str0_utf8!("baz")]; assert_eq!( INTS[..], [&0, &1, &2, &3] ); assert_eq!( STRS[..], [str0_utf8!("foo"), str0_utf8!("bar"), str0_utf8!("baz")] );