[−][src]Struct pelite::Pir
Typed relative virtual address.
Implementations
impl<T: ?Sized> Pir<T>
[src]
pub const NULL: Pir<T>
[src]
Null pointer constant.
pub fn null() -> Pir<T>
[src]
Creates a null pointer.
pub fn is_null(self) -> bool
[src]
Returns true if the pointer is null.
pub fn cast<U: ?Sized>(self) -> Pir<U>
[src]
Casts the pointer to a different type keeping the pointer address fixed.
pub fn offset<U: ?Sized>(self, offset: i32) -> Pir<U>
[src]
Offsets and casts the pointer to a differen type.
Because the type of the current and the target may be unrelated, this is a byte offset.
pub fn into_raw(self) -> u32
[src]
Returns the raw integer, type ascription helper.
impl<T> Pir<[T]>
[src]
pub fn decay(self) -> Pir<T>
[src]
Decays the pointer from [T]
to T
.
pub fn at(self, i: usize) -> Pir<T>
[src]
Pointer arithmetic, gets the pointer of an element at the specified index.
Trait Implementations
impl<T: ?Sized> AsMut<u32> for Pir<T>
[src]
impl<T: ?Sized> AsRef<u32> for Pir<T>
[src]
impl<T: ?Sized> Clone for Pir<T>
[src]
impl<T: ?Sized> Copy for Pir<T>
[src]
impl<T: ?Sized> Debug for Pir<T>
[src]
impl<T: ?Sized> Default for Pir<T>
[src]
impl<T: ?Sized> Display for Pir<T>
[src]
impl<T: ?Sized> Eq for Pir<T>
[src]
impl<T: ?Sized> From<Pir<T>> for u32
[src]
impl<T: ?Sized> From<u32> for Pir<T>
[src]
impl<T: ?Sized> Hash for Pir<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized> LowerHex for Pir<T>
[src]
impl<T: ?Sized> Ord for Pir<T>
[src]
fn cmp(&self, rhs: &Pir<T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: ?Sized> PartialEq<Pir<T>> for Pir<T>
[src]
impl<T: ?Sized> PartialOrd<Pir<T>> for Pir<T>
[src]
fn partial_cmp(&self, rhs: &Pir<T>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: ?Sized> Pod for Pir<T> where
Pir<T>: 'static,
[src]
Pir<T>: 'static,
fn zeroed() -> Self
[src]
fn as_bytes(&self) -> &[u8]
[src]
fn as_bytes_mut(&mut self) -> &mut [u8]
[src]
fn as_data_view(&self) -> &DataView
[src]
fn as_data_view_mut(&mut self) -> &mut DataView
[src]
impl<T: ?Sized> Serialize for Pir<T>
[src]
impl<T: ?Sized> UpperHex for Pir<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Pir<T>
impl<T: ?Sized> Send for Pir<T>
impl<T: ?Sized> Sync for Pir<T>
impl<T: ?Sized> Unpin for Pir<T>
impl<T: ?Sized> UnwindSafe for Pir<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,