#[non_exhaustive]pub enum CompileDirectiveKind {
Strict,
Warnings,
Feature,
Lib,
Inheritance,
Constant,
Module,
Dynamic,
}Expand description
Compile-time directive classification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Strict
strict pragma.
Warnings
warnings pragma.
Feature
feature pragma.
Lib
lib include-path pragma.
Inheritance
Inheritance helper such as parent or base.
Constant
Constant declaration helper.
Module
Ordinary module load/import directive.
Dynamic
Dynamic or unsupported directive shape.
Trait Implementations§
Source§impl Clone for CompileDirectiveKind
impl Clone for CompileDirectiveKind
Source§fn clone(&self) -> CompileDirectiveKind
fn clone(&self) -> CompileDirectiveKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileDirectiveKind
impl Debug for CompileDirectiveKind
Source§impl Hash for CompileDirectiveKind
impl Hash for CompileDirectiveKind
Source§impl PartialEq for CompileDirectiveKind
impl PartialEq for CompileDirectiveKind
Source§fn eq(&self, other: &CompileDirectiveKind) -> bool
fn eq(&self, other: &CompileDirectiveKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CompileDirectiveKind
impl Eq for CompileDirectiveKind
impl StructuralPartialEq for CompileDirectiveKind
Auto Trait Implementations§
impl Freeze for CompileDirectiveKind
impl RefUnwindSafe for CompileDirectiveKind
impl Send for CompileDirectiveKind
impl Sync for CompileDirectiveKind
impl Unpin for CompileDirectiveKind
impl UnsafeUnpin for CompileDirectiveKind
impl UnwindSafe for CompileDirectiveKind
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