#[repr(C)]pub struct Fixed<T> { /* private fields */ }
Expand description
A fixed memory location.
Implementations§
Source§impl<T> Fixed<T>
impl<T> Fixed<T>
Sourcepub fn from_static(data: &'static T) -> Fixed<T>
pub fn from_static(data: &'static T) -> Fixed<T>
Creates a new Fixed from the given static value.
Trait Implementations§
Source§impl<T, D> From<&'static D> for Fixed<T>where
D: Deref<Target = T>,
impl<T, D> From<&'static D> for Fixed<T>where
D: Deref<Target = T>,
Source§fn from(data: &'static D) -> Fixed<T>
fn from(data: &'static D) -> Fixed<T>
Converts to this type from the input type.
Source§impl Into<Fixed<LayerClass>> for &'static LayerClass
impl Into<Fixed<LayerClass>> for &'static LayerClass
Source§fn into(self) -> Fixed<LayerClass>
fn into(self) -> Fixed<LayerClass>
Converts this type into the (usually inferred) input type.
impl<T> Copy for Fixed<T>where
T: Copy,
impl<T> Send for Fixed<T>where
T: Send,
impl<T> Sync for Fixed<T>where
T: Sync,
Auto Trait Implementations§
impl<T> Freeze for Fixed<T>
impl<T> RefUnwindSafe for Fixed<T>where
T: RefUnwindSafe,
impl<T> Unpin for Fixed<T>
impl<T> UnwindSafe for Fixed<T>where
T: RefUnwindSafe,
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