On Tue, Jul 30, 2013 at 8:56 AM, Julius Pfrommer <[email protected]> wrote: > The compiler aborts with the following message: > datatypes.rs:10:37: 10:41 error: unresolved name `Self`. Did you mean `bin`? > datatypes.rs:10 let size = std::sys::size_of<Self>()/8; > > Is it currently possible to access the size (in bits/bytes) of the > "Self"-type?
std::sys::size_of::<Self>() (there might be a better way to do what you'r achieving but I don't have time for a "proper" email) _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
