Skip to main content

SpaceAddress

Struct SpaceAddress 

Source
pub struct SpaceAddress { /* private fields */ }
Expand description

A pointer-typed value carrying the memory space it points into.

This represents arbitrary space provenance — e.g. the result of &A + offset, which points into the space of varnode A. It is the type-system encoding of the address-space tag that pointer-producing instructions used to carry as a separate field. Its byte width is the producing instruction’s width (not necessarily the space’s address size), matching the operand-derived size of pointer arithmetic.

Trait Implementations§

Source§

impl Clone for SpaceAddress

Source§

fn clone(&self) -> SpaceAddress

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Type for SpaceAddress

Source§

fn size(&self) -> usize

Width of values of this type in bytes.
Source§

fn space(&self) -> Option<MemorySpaceId>

The memory space this type lives in, if it is a pointer type.
Source§

fn clone_box(&self) -> Box<dyn Type>

Clones this type into a fresh boxed trait object. Read more
Source§

fn repr(&self) -> TypeRepr

Describes this type in a flat, serializable form. Read more
Source§

fn fields(&self) -> Option<&[AggregateField]>

The ordered field types, if this is an AggregateType or nominal StructType.
Source§

fn struct_name(&self) -> Option<&str>

The name of this type, if it is a nominal StructType.
Source§

fn function_return_owner(&self) -> Option<FunctionId>

Owning function when this is its unique, editable return-record type.
Source§

fn pointee(&self) -> Option<TypeId>

The pointee type, if this is a StructPointer.
Source§

fn array(&self) -> Option<(TypeId, usize)>

The (elem, count) pair, if this is an ArrayType. Returns None for every other type — this is the only discriminator element-aware code uses to tell an array from the width-N scalar it otherwise looks like.
Source§

fn list(&self) -> Option<(TypeId, Option<usize>)>

The (elem, bound) pair, if this is a ListType — a variable-length sequence whose bound is the static element upper bound (Some(n)) or None when unbounded (a pointer-sourced string). Returns None (the outer option) for every non-list type. This is the discriminator that tells a list (take_while’s result) from a fixed-length array: both look like width-N scalars structurally, but a list’s length is not statically known.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.