pub enum Dialect {
Iso,
Gnu,
}Expand description
Whether the GNU extensions that need a plain spelling are switched on.
GCC draws the same line between -std=c99 and -std=gnu99: everything
spelled with a double underscore (__typeof__, __attribute__,
__builtin_*, __extension__) is available either way, because those names
are reserved and cannot collide with a user’s own; only the plain spellings
— typeof, asm — need the GNU dialect, and only there is a feature of a
newer revision accepted without a diagnostic (GCC takes _Static_assert
in gnu99).
See doc/gnu-extensions.md
in the repository for the whole catalogue.
Variants§
Iso
Strict ISO C: c89!, c99!, c11!, c17!, c23!.
Gnu
ISO C plus the GNU extensions: gnu89!, gnu99!, gnu11!, gnu17!,
gnu23!.
Implementations§
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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