[−][src]Struct cgc_single_threaded::mem::Ptr
Methods
impl<T: ?Sized> Ptr<T>
[src]
impl<T> Ptr<T>
[src]
pub fn new(x: T) -> Self
[src]
pub fn from_box(b: Box<T>) -> Self
[src]
pub fn set(&self, val: T)
[src]
pub fn replace(&self, val: T) -> T
[src]
pub fn take(&self) -> T where
T: Default,
[src]
T: Default,
pub fn is_null(&self) -> bool
[src]
pub fn null() -> Self
[src]
Trait Implementations
impl<T> Clone for Ptr<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for Ptr<T>
[src]
impl<T> Deref for Ptr<T>
[src]
impl<T> Eq for Ptr<T>
[src]
impl<T> Hash for Ptr<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> PartialEq<Ptr<T>> for Ptr<T>
[src]
impl<T> Send for Ptr<T>
[src]
impl<T> Sync for Ptr<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Ptr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T: ?Sized> Unpin for Ptr<T>
impl<T: ?Sized> UnwindSafe for Ptr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,