pub enum StdHeader {
Show 15 variants
Assert,
Ctype,
Errno,
Float,
Limits,
Locale,
Math,
Setjmp,
Signal,
Stdarg,
Stddef,
Stdio,
Stdlib,
String,
Time,
}Expand description
ISO C99 §7 Standard Library Headers
Variants§
Implementations§
Source§impl StdHeader
impl StdHeader
Sourcepub fn from_filename(filename: &str) -> Option<Self>
pub fn from_filename(filename: &str) -> Option<Self>
Parse header name from #include filename
§Examples
use decy_stdlib::StdHeader;
assert_eq!(StdHeader::from_filename("string.h"), Some(StdHeader::String));
assert_eq!(StdHeader::from_filename("stdio.h"), Some(StdHeader::Stdio));
assert_eq!(StdHeader::from_filename("unknown.h"), None);Trait Implementations§
impl Copy for StdHeader
impl Eq for StdHeader
impl StructuralPartialEq for StdHeader
Auto Trait Implementations§
impl Freeze for StdHeader
impl RefUnwindSafe for StdHeader
impl Send for StdHeader
impl Sync for StdHeader
impl Unpin for StdHeader
impl UnwindSafe for StdHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more