#[repr(C)]pub enum PointerType {
Reference(ValuePointerType),
Raw(ValuePointerType),
Function(FunctionPointerDef),
}Expand description
Describes all pointer types
Variants§
Reference(ValuePointerType)
Describees bound const and mut references (&/&mut)
Raw(ValuePointerType)
Describes raw pointers
Dereferencing invalid raw pointers may lead to undefined behavior
Function(FunctionPointerDef)
Describes function pointers
Trait Implementations§
Source§impl Clone for PointerType
impl Clone for PointerType
Source§fn clone(&self) -> PointerType
fn clone(&self) -> PointerType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerType
impl Debug for PointerType
impl Copy for PointerType
Auto Trait Implementations§
impl Freeze for PointerType
impl RefUnwindSafe for PointerType
impl Send for PointerType
impl Sync for PointerType
impl Unpin for PointerType
impl UnwindSafe for PointerType
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