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

pub struct SpaceElt<'a, A = BitVec> {
    pub space: Space<'a>,
    pub span: SpaceSpan<A>,

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


space: Space<'a>


span: SpaceSpan<A>



impl<'a, A> SpaceElt<'a, A>[src]

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

Map address using f.

pub fn try_map_address<B, E, F: FnOnce(A) -> Result<B, E>>(
    f: F
) -> Result<SpaceElt<'a, B>, E>

Map address using a possibly failing f.

impl<'a> SpaceElt<'a, BitVec>[src]

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

Convert from a register.

Trait Implementations

impl<'a, A: Clone> Clone for SpaceElt<'a, A>[src]

impl<'a, A: Copy> Copy for SpaceElt<'a, A>[src]

impl<'a, A: Eq> Eq for SpaceElt<'a, A>[src]

impl<'a, A: Hash> Hash for SpaceElt<'a, A>[src]

impl<'a, A: PartialEq> PartialEq<SpaceElt<'a, A>> for SpaceElt<'a, A>[src]

impl<'a, A> StructuralEq for SpaceElt<'a, A>[src]

impl<'a, A> StructuralPartialEq for SpaceElt<'a, A>[src]

Auto Trait Implementations

impl<'a, A> RefUnwindSafe for SpaceElt<'a, A> where
    A: RefUnwindSafe

impl<'a, A> Send for SpaceElt<'a, A> where
    A: Send

impl<'a, A> Sync for SpaceElt<'a, A> where
    A: Sync

impl<'a, A> Unpin for SpaceElt<'a, A> where
    A: Unpin

impl<'a, A> UnwindSafe for SpaceElt<'a, A> where
    A: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.