You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given T: IntoBytes and U: FromBytes, we use the same logic as transmute_ref!, only with Ref instead of references. This will need to be fallible for size and alignment reasons.
This would permit Fuchsia's Netstack3 to implement this code generically, e.g. replacing pub fn as_v1_query(&self) -> Mldv1Body<&[u8]> with pub fn into_v1_query(self) -> Mldv1Body<B>.
Activity
Ref
cast methods #2153