We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28d042e commit 739df23Copy full SHA for 739df23
src/libstd/unstable/raw.rs
@@ -49,6 +49,7 @@ pub trait Repr<T> {
49
/// struct representation. This can be used to read/write different values
50
/// for the struct. This is a safe method because by default it does not
51
/// give write-access to the struct returned.
52
+ #[inline]
53
fn repr(&self) -> T { unsafe { cast::transmute_copy(self) } }
54
}
55
0 commit comments