Enum glsl_lang_pp::processor::event::DirectiveKind
source · pub enum DirectiveKind {
}
Variants§
Empty(Empty)
Version(Version)
Extension(Extension)
Define(Define)
IfDef(IfDef)
IfNDef(IfNDef)
If(If)
Elif(Elif)
Else(Else)
EndIf(EndIf)
Undef(Undef)
Error(Error)
Include(Include)
Line(Line)
Pragma(Pragma)
Invalid(Invalid)
Trait Implementations§
source§impl Clone for DirectiveKind
impl Clone for DirectiveKind
source§fn clone(&self) -> DirectiveKind
fn clone(&self) -> DirectiveKind
Returns a copy of the value. Read more
1.0.0 · 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 DirectiveKind
impl Debug for DirectiveKind
source§impl From<Define> for DirectiveKind
impl From<Define> for DirectiveKind
source§impl From<Elif> for DirectiveKind
impl From<Elif> for DirectiveKind
source§impl From<Else> for DirectiveKind
impl From<Else> for DirectiveKind
source§impl From<Empty> for DirectiveKind
impl From<Empty> for DirectiveKind
source§impl From<EndIf> for DirectiveKind
impl From<EndIf> for DirectiveKind
source§impl From<Error> for DirectiveKind
impl From<Error> for DirectiveKind
source§impl From<Extension> for DirectiveKind
impl From<Extension> for DirectiveKind
source§impl From<If> for DirectiveKind
impl From<If> for DirectiveKind
source§impl From<IfDef> for DirectiveKind
impl From<IfDef> for DirectiveKind
source§impl From<IfNDef> for DirectiveKind
impl From<IfNDef> for DirectiveKind
source§impl From<Include> for DirectiveKind
impl From<Include> for DirectiveKind
source§impl From<Invalid> for DirectiveKind
impl From<Invalid> for DirectiveKind
source§impl From<Line> for DirectiveKind
impl From<Line> for DirectiveKind
source§impl From<Pragma> for DirectiveKind
impl From<Pragma> for DirectiveKind
source§impl From<Undef> for DirectiveKind
impl From<Undef> for DirectiveKind
source§impl From<Version> for DirectiveKind
impl From<Version> for DirectiveKind
source§impl PartialEq for DirectiveKind
impl PartialEq for DirectiveKind
impl Eq for DirectiveKind
impl StructuralPartialEq for DirectiveKind
Auto Trait Implementations§
impl Freeze for DirectiveKind
impl !RefUnwindSafe for DirectiveKind
impl !Send for DirectiveKind
impl !Sync for DirectiveKind
impl Unpin for DirectiveKind
impl !UnwindSafe for DirectiveKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more