pub struct ConditionAt {
pub region: u32,
pub condition_at: usize,
}Expand description
One conditional that contains a position, and where its own condition is.
The two are different offsets and both are needed: which branch the position falls in is asked at the
position, while what the condition means is decided where the condition was written — a #define NAME
inside a region’s own body changes the answer to #ifndef NAME if it is read at the wrong end of the region.
Fields§
§region: u32Which entry of SummaryGuards::regions this is.
condition_at: usizeThe offset of the region’s own condition, which is where it must be evaluated.
Trait Implementations§
Source§impl Clone for ConditionAt
impl Clone for ConditionAt
impl Copy for ConditionAt
Source§impl Debug for ConditionAt
impl Debug for ConditionAt
impl Eq for ConditionAt
Source§impl PartialEq for ConditionAt
impl PartialEq for ConditionAt
impl StructuralPartialEq for ConditionAt
Auto Trait Implementations§
impl Forget for ConditionAt
impl Freeze for ConditionAt
impl RefUnwindSafe for ConditionAt
impl Send for ConditionAt
impl Sync for ConditionAt
impl Unpin for ConditionAt
impl UnsafeUnpin for ConditionAt
impl UnwindSafe for ConditionAt
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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