[−]Struct openssl::bn::BigNumContext
Temporary storage for BigNums on the secure heap
BigNum values are stored dynamically and therefore can be expensive
to allocate. BigNumContext and the OpenSSL BN_CTX structure are used
internally when passing BigNum values between subroutines.
Methods
impl BigNumContext[src]
impl BigNumContextpub fn new() -> Result<BigNumContext, ErrorStack>[src]
pub fn new() -> Result<BigNumContext, ErrorStack>Returns a new BigNumContext.
See OpenSSL documentation at BN_CTX_new.
Trait Implementations
impl ForeignType for BigNumContext
impl ForeignType for BigNumContexttype CType = BN_CTX
The raw C type.
type Ref = BigNumContextRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut BN_CTX) -> BigNumContext
unsafe fn from_ptr(ptr: *mut BN_CTX) -> BigNumContextConstructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut BN_CTX
fn as_ptr(&self) -> *mut BN_CTXReturns a raw pointer to the wrapped value.
impl Drop for BigNumContext
impl Drop for BigNumContextimpl Deref for BigNumContext
impl Deref for BigNumContexttype Target = BigNumContextRef
The resulting type after dereferencing.
fn deref(&self) -> &BigNumContextRef
fn deref(&self) -> &BigNumContextRefDereferences the value.
impl DerefMut for BigNumContext
impl DerefMut for BigNumContextfn deref_mut(&mut self) -> &mut BigNumContextRef
fn deref_mut(&mut self) -> &mut BigNumContextRefMutably dereferences the value.
impl Borrow<BigNumContextRef> for BigNumContext
impl Borrow<BigNumContextRef> for BigNumContextfn borrow(&self) -> &BigNumContextRef
fn borrow(&self) -> &BigNumContextRefImmutably borrows from an owned value. Read more
impl AsRef<BigNumContextRef> for BigNumContext
impl AsRef<BigNumContextRef> for BigNumContextfn as_ref(&self) -> &BigNumContextRef
fn as_ref(&self) -> &BigNumContextRefPerforms the conversion.
impl Send for BigNumContext[src]
impl Send for BigNumContextimpl Sync for BigNumContext[src]
impl Sync for BigNumContextBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more