#[repr(C)]pub enum PointerType<'shape> {
Reference(ValuePointerType<'shape>),
Raw(ValuePointerType<'shape>),
Function(FunctionPointerDef),
}Expand description
Describes all pointer types
Variants§
Reference(ValuePointerType<'shape>)
Describees bound const and mut references (&/&mut)
Raw(ValuePointerType<'shape>)
Describes raw pointers
Dereferencing invalid raw pointers may lead to undefined behavior
Function(FunctionPointerDef)
Describes function pointers
Trait Implementations§
Source§impl<'shape> Clone for PointerType<'shape>
impl<'shape> Clone for PointerType<'shape>
Source§fn clone(&self) -> PointerType<'shape>
fn clone(&self) -> PointerType<'shape>
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<'shape> Debug for PointerType<'shape>
impl<'shape> Debug for PointerType<'shape>
Source§impl<'shape> Hash for PointerType<'shape>
impl<'shape> Hash for PointerType<'shape>
Source§impl<'shape> PartialEq for PointerType<'shape>
impl<'shape> PartialEq for PointerType<'shape>
impl<'shape> Copy for PointerType<'shape>
impl<'shape> Eq for PointerType<'shape>
impl<'shape> StructuralPartialEq for PointerType<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for PointerType<'shape>
impl<'shape> RefUnwindSafe for PointerType<'shape>
impl<'shape> Send for PointerType<'shape>
impl<'shape> Sync for PointerType<'shape>
impl<'shape> Unpin for PointerType<'shape>
impl<'shape> UnwindSafe for PointerType<'shape>
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