aws_lc_rs::ptr

Type Alias DetachableLcPtr

Source
pub(crate) type DetachableLcPtr<T> = DetachablePointer<*mut T>;

Aliased Type§

struct DetachableLcPtr<T> {
    pointer: Option<*mut T>,
}

Fields§

§pointer: Option<*mut T>

Implementations

Source§

impl<P: Pointer> DetachablePointer<P>

Source

pub fn as_mut(&mut self) -> MutPointer<P::T>

Source§

impl<P: Pointer> DetachablePointer<P>

Source

pub fn new<T: IntoPointer<P>>(value: T) -> Result<Self, ()>

Source

pub fn detach(self) -> P

Trait Implementations

Source§

impl<P: Debug + Pointer> Debug for DetachablePointer<P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P: Pointer> Deref for DetachablePointer<P>

Source§

type Target = P

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<P: Pointer> Drop for DetachablePointer<P>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl TryFrom<&[u8]> for DetachablePointer<*mut BIGNUM>

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(bytes: &[u8]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for DetachablePointer<*mut BIGNUM>

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: u64) -> Result<Self, Self::Error>

Performs the conversion.