pub struct RegionData {
pub parent: WeakRegion,
pub depth: usize,
pub params: RwLock<Parameters>,
/* private fields */
}Expand description
The data defining a region
Fields§
§parent: WeakRegionThe parent scope of this region
depth: usizeThe depth of this region
params: RwLock<Parameters>The parameters of a region
Implementations§
Source§impl RegionData
impl RegionData
Sourcepub fn params(&self) -> RwLockReadGuard<'_, Parameters>
pub fn params(&self) -> RwLockReadGuard<'_, Parameters>
Get the parameters of a region
Sourcepub fn params_mut(&self) -> RwLockWriteGuard<'_, Parameters>
pub fn params_mut(&self) -> RwLockWriteGuard<'_, Parameters>
Mutably get the parameters of a region
Sourcepub fn add_param(&self, desc: ParameterDesc) -> (usize, ValId)
pub fn add_param(&self, desc: ParameterDesc) -> (usize, ValId)
Add a parameter to this region, get the parameter back along with its index
Sourcepub fn add_with_ty(&self, ty: ValId) -> (usize, ValId)
pub fn add_with_ty(&self, ty: ValId) -> (usize, ValId)
Add a parameter to this region with a given type, get the parameter back
Sourcepub fn this(&self) -> WeakRegion
pub fn this(&self) -> WeakRegion
Get the this pointer of this region
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RegionData
impl !RefUnwindSafe for RegionData
impl Send for RegionData
impl Sync for RegionData
impl Unpin for RegionData
impl !UnwindSafe for RegionData
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> 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