Struct arret_compiler::ArcId[][src]

pub struct ArcId<T> { /* fields omitted */ }

Reference-counted pointer that uses pointer identity

Traits such as Hash, Eq, Ord etc. are implemented in terms of the value’s memory location. This means that the value returned by ArcId::new() is considered equal to itself and its clones regardless of the value it points to.

Implementations

impl<T> ArcId<T>[src]

pub fn new(value: T) -> Self[src]

Trait Implementations

impl<T> Clone for ArcId<T>[src]

impl<T: Debug> Debug for ArcId<T>[src]

impl<T> Deref for ArcId<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> Hash for ArcId<T>[src]

impl<T> Ord for ArcId<T>[src]

impl<T> PartialEq<ArcId<T>> for ArcId<T>[src]

impl<T> PartialOrd<ArcId<T>> for ArcId<T>[src]

impl<T> Eq for ArcId<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ArcId<T> where
    T: RefUnwindSafe

impl<T> Send for ArcId<T> where
    T: Send + Sync

impl<T> Sync for ArcId<T> where
    T: Send + Sync

impl<T> Unpin for ArcId<T>

impl<T> UnwindSafe for ArcId<T> where
    T: RefUnwindSafe

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<T> From<T> for T[src]

impl<T> HashInHeap for T where
    T: Hash
[src]

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

impl<T> PartialEqInHeap for T where
    T: PartialEq<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.