We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[repr(C)] pub union PtrToRef<'a, T: ?Sized> { pub ptr: *const T, pub reff: &'a T, } fn main() { let hello = b"Hello union Rust"; let key = unsafe { let string: &'static str = { PtrToRef { ptr: hello as *const [u8] as *const str, }.reff }; string }; println!("{}", key); }
The text was updated successfully, but these errors were encountered:
Reference link: https://github.com/orf/gping/blob/af82c7e29ce34ce96107db2b6dfce7134f8f19c9/gping/src/main.rs#L37-L47
Sorry, something went wrong.
clap_long_version
#[clap(long_version = clap_long_version())]
work for issue #86 #68
3457d59
use const_format crate solve
No branches or pull requests
The text was updated successfully, but these errors were encountered: