pub struct ScopeData {
pub parent: Option<ScopeId>,
pub kind: ScopeKind,
pub guard: Option<Guard>,
}Expand description
A scope node in the scope tree.
Fields§
§parent: Option<ScopeId>Parent scope (None for root / Function scope).
kind: ScopeKindWhat kind of scope this is.
guard: Option<Guard>Guard constraint imposed by the enclosing condition (if any).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeData
impl RefUnwindSafe for ScopeData
impl Send for ScopeData
impl Sync for ScopeData
impl Unpin for ScopeData
impl UnsafeUnpin for ScopeData
impl UnwindSafe for ScopeData
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<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