pub struct Item(/* private fields */);
Expand description
An item in the per-location borrow stack.
Implementations§
source§impl Item
impl Item
pub fn new(tag: BorTag, perm: Permission, protected: bool) -> Self
sourcepub fn perm(self) -> Permission
pub fn perm(self) -> Permission
The permission this item grants.
sourcepub fn set_permission(&mut self, perm: Permission)
pub fn set_permission(&mut self, perm: Permission)
Set the Permission stored in this Item
Trait Implementations§
source§impl PartialEq for Item
impl PartialEq for Item
impl Copy for Item
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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