Struct css::servo_arc::NonZeroPtrMut
[−]
[src]
pub struct NonZeroPtrMut<T: ?Sized + 'static>(_);
Wrapper type for pointers to get the non-zero optimization. When NonZero/Shared/Unique are stabilized, we should just use Shared here to get the same effect. Gankro is working on this in [1].
It's unfortunate that this needs to infect all the caller types
with 'static. It would be nice to just use a &() and a PhantomData
Methods
impl<T: ?Sized> NonZeroPtrMut<T>
[src]
Trait Implementations
impl<T: ?Sized + 'static> Clone for NonZeroPtrMut<T>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: ?Sized + 'static> Pointer for NonZeroPtrMut<T>
[src]
impl<T: ?Sized + 'static> Debug for NonZeroPtrMut<T>
[src]
impl<T: ?Sized + 'static> PartialEq for NonZeroPtrMut<T>
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.