pub struct AccComplex { /* private fields */ }Implementations§
Source§impl AccComplex
impl AccComplex
pub fn new() -> Self
Sourcepub unsafe fn from_ptr(ptr: *const acc_int16_complex_t) -> Self
pub unsafe fn from_ptr(ptr: *const acc_int16_complex_t) -> Self
Creates a new AccComplex instance from a raw pointer.
§Safety
This function is unsafe because it dereferences a raw pointer.
The caller must ensure that the pointer is valid and points to a properly initialized acc_int16_complex_t struct.
Sourcepub unsafe fn mut_ptr(&mut self) -> *mut acc_int16_complex_t
pub unsafe fn mut_ptr(&mut self) -> *mut acc_int16_complex_t
Returns a mutable pointer to the inner acc_int16_complex_t struct.
§Safety
This function is unsafe because it returns a raw pointer.
pub fn ptr(&self) -> *const acc_int16_complex_t
Trait Implementations§
Source§impl Clone for AccComplex
impl Clone for AccComplex
Source§fn clone(&self) -> AccComplex
fn clone(&self) -> AccComplex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccComplex
impl Debug for AccComplex
Source§impl Default for AccComplex
impl Default for AccComplex
Source§impl From<AccComplex> for Complex<i16>
impl From<AccComplex> for Complex<i16>
Source§fn from(acc_complex: AccComplex) -> Self
fn from(acc_complex: AccComplex) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccComplex
impl RefUnwindSafe for AccComplex
impl Send for AccComplex
impl Sync for AccComplex
impl Unpin for AccComplex
impl UnwindSafe for AccComplex
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