Struct genet_abi::fixed::MutFixed [−][src]
#[repr(C)]pub struct MutFixed<T> { /* fields omitted */ }
A mutable fixed memory location.
Methods
impl<T> MutFixed<T>
[src]
impl<T> MutFixed<T>
pub fn new(data: T) -> MutFixed<T>
[src]
pub fn new(data: T) -> MutFixed<T>
Creates a new MutFixed containing the given value.
pub fn as_ptr(&self) -> *const T
[src]
pub fn as_ptr(&self) -> *const T
Returns a raw pointer to the underlying data in this container.
pub fn as_mut_ptr(&self) -> *mut T
[src]
pub fn as_mut_ptr(&self) -> *mut T
Returns a mutable raw pointer to the underlying data in this container.
pub unsafe fn from_ptr(ptr: *mut T) -> MutFixed<T>
[src]
pub unsafe fn from_ptr(ptr: *mut T) -> MutFixed<T>
Trait Implementations
impl<T: Send> Send for MutFixed<T>
[src]
impl<T: Send> Send for MutFixed<T>
impl<T> Debug for MutFixed<T>
[src]
impl<T> Debug for MutFixed<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Deref for MutFixed<T>
[src]
impl<T> Deref for MutFixed<T>
type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for MutFixed<T>
[src]
impl<T> DerefMut for MutFixed<T>
ⓘImportant traits for &'a mut Rfn deref_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'a mut R
fn deref_mut(&mut self) -> &mut T
Mutably dereferences the value.
impl Into<MutFixed<Layer>> for Layer
[src]
impl Into<MutFixed<Layer>> for Layer