mozilla/rust — pull request #9220 by kballard (2013-09-16 03:31:31+00:00)
Title: c_str: Add new method .as_str() -> Option<&str>

Also rustify .as_bytes(), so it no longer calls libc::strlen() and is
inlineable.