Struct style::author_styles::EMPTY_CASCADE_DATA
source · struct EMPTY_CASCADE_DATA {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = Arc<CascadeData>>§
sourcepub fn borrow_arc<'a>(&'a self) -> ArcBorrow<'a, T>
pub fn borrow_arc<'a>(&'a self) -> ArcBorrow<'a, T>
Produce a pointer to the data that can be converted back
to an Arc. This is basically an &Arc<T>
, without the extra indirection.
It has the benefits of an &T
but also knows about the underlying refcount
and can be converted into more Arc<T>
s if necessary.
sourcepub fn heap_ptr(&self) -> *const c_void
pub fn heap_ptr(&self) -> *const c_void
Returns the address on the heap of the Arc itself – not the T within it – for memory reporting.
If this is a static reference, this returns null.
sourcepub fn mark_as_intentionally_leaked(&self)
pub fn mark_as_intentionally_leaked(&self)
Marks this Arc
as intentionally leaked for the purposes of refcount
logging.
It’s a logic error to call this more than once, but it’s not unsafe, as it’d just report negative leaks.
Trait Implementations§
source§impl Deref for EMPTY_CASCADE_DATA
impl Deref for EMPTY_CASCADE_DATA
§type Target = Arc<CascadeData>
type Target = Arc<CascadeData>
The resulting type after dereferencing.
source§fn deref(&self) -> &Arc<CascadeData>
fn deref(&self) -> &Arc<CascadeData>
Dereferences the value.
impl LazyStatic for EMPTY_CASCADE_DATA
Auto Trait Implementations§
impl Freeze for EMPTY_CASCADE_DATA
impl RefUnwindSafe for EMPTY_CASCADE_DATA
impl Send for EMPTY_CASCADE_DATA
impl Sync for EMPTY_CASCADE_DATA
impl Unpin for EMPTY_CASCADE_DATA
impl UnwindSafe for EMPTY_CASCADE_DATA
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> 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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert