Trait SNew

Source
pub trait SNew {
    // Required method
    fn new() -> Self;

    // Provided methods
    fn as_ptr(&self) -> mp_r { ... }
    fn as_ptr_mut(&mut self) -> mp_t { ... }
}
Expand description

trait SNew

Required Methods§

Source

fn new() -> Self

new

Provided Methods§

Source

fn as_ptr(&self) -> mp_r

as_ptr

Source

fn as_ptr_mut(&mut self) -> mp_t

as_ptr_mut

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SNew for __mpf_struct

impl SNew

Source§

impl SNew for __mpq_struct

impl SNew

Source§

impl SNew for __mpz_struct

impl SNew

Source§

impl SNew for gmp_randstate_struct

impl SNew