pub struct Region(/* private fields */);Expand description
A region into which nodes are scoped
Implementations§
Methods from Deref<Target = 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§
Source§impl PartialEq<Region> for WeakRegion
impl PartialEq<Region> for WeakRegion
Source§impl PartialEq<WeakRegion> for Region
impl PartialEq<WeakRegion> for Region
Source§impl PartialOrd<Region> for WeakRegion
impl PartialOrd<Region> for WeakRegion
Source§impl PartialOrd<WeakRegion> for Region
impl PartialOrd<WeakRegion> for Region
Source§impl PartialOrd for Region
impl PartialOrd for Region
Source§impl Deref for Region
impl Deref for Region
Source§type Target = RegionData
type Target = RegionData
The resulting type after dereferencing.
Source§fn deref(&self) -> &RegionData
fn deref(&self) -> &RegionData
Dereferences the value.
impl Eq for Region
Auto Trait Implementations§
impl Freeze for Region
impl !RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl !UnwindSafe for Region
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§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> 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