Struct genet_abi::fixed::Fixed [−][src]
#[repr(C)]pub struct Fixed<T> { /* fields omitted */ }
A fixed memory location.
Methods
impl<T> Fixed<T>
[src]
impl<T> Fixed<T>
pub fn new(data: T) -> Fixed<T>
[src]
pub fn new(data: T) -> Fixed<T>
Creates a new Fixed containing the given value.
pub fn from_static(data: &'static T) -> Fixed<T>
[src]
pub fn from_static(data: &'static T) -> Fixed<T>
Creates a new Fixed from the given static 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.
Trait Implementations
impl Into<Fixed<Attr>> for Attr
[src]
impl Into<Fixed<Attr>> for Attr
impl Into<Fixed<Attr>> for &'static Attr
[src]
impl Into<Fixed<Attr>> for &'static Attr
impl Into<Fixed<AttrClass>> for &'static AttrClass
[src]
impl Into<Fixed<AttrClass>> for &'static AttrClass
impl<T: Copy> Copy for Fixed<T>
[src]
impl<T: Copy> Copy for Fixed<T>
impl<T: Send> Send for Fixed<T>
[src]
impl<T: Send> Send for Fixed<T>
impl<T: Sync> Sync for Fixed<T>
[src]
impl<T: Sync> Sync for Fixed<T>
impl<T> Debug for Fixed<T>
[src]
impl<T> Debug for Fixed<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> Clone for Fixed<T>
[src]
impl<T> Clone for Fixed<T>
fn clone(&self) -> Fixed<T>
[src]
fn clone(&self) -> Fixed<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T, D: Deref<Target = T>> From<&'static D> for Fixed<T>
[src]
impl<T, D: Deref<Target = T>> From<&'static D> for Fixed<T>
impl<T> AsRef<T> for Fixed<T>
[src]
impl<T> AsRef<T> for Fixed<T>
impl<T> Deref for Fixed<T>
[src]
impl<T> Deref for Fixed<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 Into<Fixed<LayerClass>> for &'static LayerClass
[src]
impl Into<Fixed<LayerClass>> for &'static LayerClass
fn into(self) -> Fixed<LayerClass>
[src]
fn into(self) -> Fixed<LayerClass>
Performs the conversion.