pub enum PtrLevel {
None,
Read,
Write(PtrBound),
Any,
}Expand description
Raw-pointer-capability tier, from least to most risk.
Variants§
None
No raw pointer operations.
Read
Raw pointer reads only.
Write(PtrBound)
Raw pointer writes, bounded or unbounded per PtrBound.
Any
All raw pointer operations.
Implementations§
Trait Implementations§
impl Copy for PtrLevel
impl Eq for PtrLevel
impl StructuralPartialEq for PtrLevel
Auto Trait Implementations§
impl Freeze for PtrLevel
impl RefUnwindSafe for PtrLevel
impl Send for PtrLevel
impl Sync for PtrLevel
impl Unpin for PtrLevel
impl UnsafeUnpin for PtrLevel
impl UnwindSafe for PtrLevel
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