#[non_exhaustive]pub struct PointerType { /* private fields */ }
Expand description
Represents a pointer type in some address space.
The validity of the internal pointee type is correct by construction.
Implementations§
Source§impl PointerType
impl PointerType
Sourcepub fn new(
pointee: Type,
address_space: AddressSpace,
) -> Result<Self, PointerTypeError>
pub fn new( pointee: Type, address_space: AddressSpace, ) -> Result<Self, PointerTypeError>
Create a new PointerType
.
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
Source§impl PartialEq for PointerType
impl PartialEq for PointerType
impl StructuralPartialEq 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