[][src]Struct gf::pivot::space::SpaceSpan

pub struct SpaceSpan<A = BitVec> {
    pub endianness: Endianness,
    pub address: A,
    pub size: VarSize,
}

🟢 Contiguous bit range in some space where the base address is represented as A.

Fields

endianness: Endianness

Access endianness.

address: A

Base address.

size: VarSize

Size.

Implementations

impl<A> SpaceSpan<A>[src]

pub fn map_address<B, F: FnOnce(A) -> B>(self, f: F) -> SpaceSpan<B>[src]

Map address using f.

pub fn try_map_address<B, E, F: FnOnce(A) -> Result<B, E>>(
    self,
    f: F
) -> Result<SpaceSpan<B>, E>
[src]

Map address using a possibly failing f.

impl SpaceSpan<BitVec>[src]

pub fn from_reg(reg: &Reg<'_>) -> Self[src]

Convert from a register.

Trait Implementations

impl<A: Clone> Clone for SpaceSpan<A>[src]

impl<A: Copy> Copy for SpaceSpan<A>[src]

impl<A: Debug> Debug for SpaceSpan<A>[src]

impl<A: Eq> Eq for SpaceSpan<A>[src]

impl<A: Hash> Hash for SpaceSpan<A>[src]

impl<A: PartialEq> PartialEq<SpaceSpan<A>> for SpaceSpan<A>[src]

impl<A> StructuralEq for SpaceSpan<A>[src]

impl<A> StructuralPartialEq for SpaceSpan<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for SpaceSpan<A> where
    A: RefUnwindSafe

impl<A> Send for SpaceSpan<A> where
    A: Send

impl<A> Sync for SpaceSpan<A> where
    A: Sync

impl<A> Unpin for SpaceSpan<A> where
    A: Unpin

impl<A> UnwindSafe for SpaceSpan<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.