pub struct ObjPtr<T>(/* private fields */);Expand description
裸指针,基于unsafe实现
Implementations§
Trait Implementations§
Source§impl From<ObjPtr<BasicBlock>> for BFSIterator
impl From<ObjPtr<BasicBlock>> for BFSIterator
Source§impl From<ObjPtr<BasicBlock>> for BFSIteratorRev
impl From<ObjPtr<BasicBlock>> for BFSIteratorRev
Source§impl From<ObjPtr<BasicBlock>> for DFSIterator
impl From<ObjPtr<BasicBlock>> for DFSIterator
Source§impl From<ObjPtr<BasicBlock>> for DFSIteratorRev
impl From<ObjPtr<BasicBlock>> for DFSIteratorRev
Source§impl From<ObjPtr<BasicBlock>> for POIterator
impl From<ObjPtr<BasicBlock>> for POIterator
Source§impl From<ObjPtr<BasicBlock>> for RPOIterator
impl From<ObjPtr<BasicBlock>> for RPOIterator
Source§impl From<ObjPtr<GlobalVariable>> for GlobalPtr
impl From<ObjPtr<GlobalVariable>> for GlobalPtr
Source§fn from(ptr: ObjPtr<GlobalVariable>) -> Self
fn from(ptr: ObjPtr<GlobalVariable>) -> Self
Converts to this type from the input type.
Source§impl<T> Ord for ObjPtr<T>where
T: Ord,
impl<T> Ord for ObjPtr<T>where
T: Ord,
Source§impl<T> PartialOrd for ObjPtr<T>where
T: PartialOrd,
Deterministic ordering for ObjPtr.
Comparing by pointer address is non-deterministic, so we compare by the object itself.
impl<T> PartialOrd for ObjPtr<T>where
T: PartialOrd,
Deterministic ordering for ObjPtr. Comparing by pointer address is non-deterministic, so we compare by the object itself.
impl<T> Copy for ObjPtr<T>
impl<T> Eq for ObjPtr<T>
Auto Trait Implementations§
impl<T> Freeze for ObjPtr<T>
impl<T> RefUnwindSafe for ObjPtr<T>where
T: RefUnwindSafe,
impl<T> !Send for ObjPtr<T>
impl<T> !Sync for ObjPtr<T>
impl<T> Unpin for ObjPtr<T>
impl<T> UnwindSafe for ObjPtr<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more