pub struct ConditionalEvent {
pub file: PathBuf,
pub kind: ConditionalEventKind,
pub directive_row: u32,
pub directive_byte_offset: u32,
pub depth_before: u32,
pub depth_after: u32,
pub parent_active: bool,
pub truth: Option<bool>,
pub current_active: bool,
pub branch_taken: bool,
pub directive_residency: ConditionalEventResidency,
pub state_residency: ConditionalEventResidency,
}Expand description
Conditional-state event emitted by the GPU-resident preprocessor driver.
Fields§
§file: PathBufFile that contained the conditional directive.
kind: ConditionalEventKindConditional directive kind.
directive_row: u32Directive row in the classified token stream.
directive_byte_offset: u32Byte offset of the directive token in the filtered source.
depth_before: u32Stack depth before applying this directive.
depth_after: u32Stack depth after applying this directive.
parent_active: boolParent active state before applying this directive.
truth: Option<bool>Truth value for #if, #elif, #ifdef, and #ifndef when evaluated.
current_active: boolCurrent active state after applying this directive.
branch_taken: boolWhether any branch in this conditional group has been taken after applying this directive.
directive_residency: ConditionalEventResidencyResidency of directive row/payload extraction.
state_residency: ConditionalEventResidencyResidency of truth evaluation or stack transition.
Trait Implementations§
Source§impl Clone for ConditionalEvent
impl Clone for ConditionalEvent
Source§fn clone(&self) -> ConditionalEvent
fn clone(&self) -> ConditionalEvent
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 ConditionalEvent
impl Debug for ConditionalEvent
impl Eq for ConditionalEvent
Source§impl PartialEq for ConditionalEvent
impl PartialEq for ConditionalEvent
impl StructuralPartialEq for ConditionalEvent
Auto Trait Implementations§
impl Freeze for ConditionalEvent
impl RefUnwindSafe for ConditionalEvent
impl Send for ConditionalEvent
impl Sync for ConditionalEvent
impl Unpin for ConditionalEvent
impl UnsafeUnpin for ConditionalEvent
impl UnwindSafe for ConditionalEvent
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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