rstd 0.1.0
Loading...
Searching...
No Matches
alloc::sync::ArcRaw< T > Class Template Referenceexport
module rstd.alloc

A raw representation of an Arc pointer, used for low-level interop. More...

Public Member Functions

auto as_ptr () const
 Returns a mutable pointer to the managed value.
 
auto into_raw () -> voidp
 Consumes the ArcRaw, returning a raw void pointer without releasing ownership.
 

Static Public Member Functions

static auto from_raw (voidp p) -> ArcRaw
 Reconstructs an ArcRaw from a raw void pointer previously obtained via into_raw.
 

Detailed Description

template<typename T>
class alloc::sync::ArcRaw< T >

A raw representation of an Arc pointer, used for low-level interop.

Template Parameters
TThe element type.

Member Function Documentation

◆ from_raw()

template<typename T >
static auto alloc::sync::ArcRaw< T >::from_raw ( voidp p) -> ArcRaw
inlinestatic

Reconstructs an ArcRaw from a raw void pointer previously obtained via into_raw.

Parameters
pThe raw void pointer.
Returns
An ArcRaw wrapping the pointer.

◆ into_raw()

template<typename T >
auto alloc::sync::ArcRaw< T >::into_raw ( ) -> voidp
inline

Consumes the ArcRaw, returning a raw void pointer without releasing ownership.

Returns
A raw void pointer to the inner allocation.

The documentation for this class was generated from the following file: