pub enum UnOp {
Not,
Neg,
PtrMetadata,
}
Variants§
Not
The !
operator for logical inversion
Neg
The -
operator for negation
PtrMetadata
Gets the metadata M
from a *const
/*mut
/&
/&mut
to
impl Pointee<Metadata = M>
.
For example, this will give a ()
from *const i32
, a usize
from
&mut [u8]
, or a ptr::DynMetadata<dyn Foo>
(internally a pointer)
from a *mut dyn Foo
.
Allowed only in MirPhase::Runtime
; earlier it’s an intrinsic.
Auto Trait Implementations§
impl Freeze for UnOp
impl RefUnwindSafe for UnOp
impl Send for UnOp
impl Sync for UnOp
impl Unpin for UnOp
impl UnwindSafe for UnOp
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