pub struct COptions {
pub extended: bool,
}Expand description
Plugin options. extended turns on the GCC, Clang and MSVC
extension constructs and the legacy fallback that covers the
long-tail declarator shapes; plain C23, the whole preprocessor
included, is the default.
Fields§
§extended: boolImplementations§
Source§impl COptions
impl COptions
pub fn new() -> Self
pub fn with_extended(self, extended: bool) -> Self
Sourcepub fn from_value(value: &Value) -> Self
pub fn from_value(value: &Value) -> Self
Read the options out of the JSON bag use_plugin merges over
the declared defaults. Only extended === true turns the
extensions on, as resolveOptions in ts/src/c.ts does.
Trait Implementations§
impl Eq for COptions
impl StructuralPartialEq for COptions
Auto Trait Implementations§
impl Forget for COptions
impl Freeze for COptions
impl Move for COptions
impl RefUnwindSafe for COptions
impl Send for COptions
impl Sync for COptions
impl Unpin for COptions
impl UnsafeUnpin for COptions
impl UnwindSafe for COptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.