pub struct Float;
Expand description
A scalar atom containing a f32
(f32
on most platforms).
Trait Implementations§
Source§impl ScalarAtom for Float
impl ScalarAtom for Float
Source§type InternalType = f32
type InternalType = f32
The internal representation of the atom. Read more
Source§fn read_scalar(body: Space<'_>) -> Option<Self::InternalType>
fn read_scalar(body: Space<'_>) -> Option<Self::InternalType>
Try to read the atom from a space. Read more
Source§fn write_scalar<'a, 'b>(
frame: FramedMutSpace<'a, 'b>,
value: Self::InternalType,
) -> Option<&'a mut Self::InternalType>
fn write_scalar<'a, 'b>( frame: FramedMutSpace<'a, 'b>, value: Self::InternalType, ) -> Option<&'a mut Self::InternalType>
Try to write the atom into a space. Read more
Auto Trait Implementations§
impl Freeze for Float
impl RefUnwindSafe for Float
impl Send for Float
impl Sync for Float
impl Unpin for Float
impl UnwindSafe for Float
Blanket Implementations§
Source§impl<'a, 'b, A> Atom<'a, 'b> for Awhere
'a: 'b,
A: ScalarAtom,
impl<'a, 'b, A> Atom<'a, 'b> for Awhere
'a: 'b,
A: ScalarAtom,
Source§type ReadParameter = ()
type ReadParameter = ()
The atom-specific parameter of the
read
function. Read moreSource§type ReadHandle = <A as ScalarAtom>::InternalType
type ReadHandle = <A as ScalarAtom>::InternalType
The return value of the
read
function. Read moreSource§type WriteParameter = <A as ScalarAtom>::InternalType
type WriteParameter = <A as ScalarAtom>::InternalType
The atom-specific parameter of the
write
function. Read moreSource§type WriteHandle = &'a mut <A as ScalarAtom>::InternalType
type WriteHandle = &'a mut <A as ScalarAtom>::InternalType
The return value of the
write
function. Read moreSource§fn read(body: Space<'a>, _: ()) -> Option<<A as ScalarAtom>::InternalType>
fn read(body: Space<'a>, _: ()) -> Option<<A as ScalarAtom>::InternalType>
Read the body of the atom. Read more
Source§fn init(
frame: FramedMutSpace<'a, 'b>,
value: <A as ScalarAtom>::InternalType,
) -> Option<&'a mut <A as ScalarAtom>::InternalType>
fn init( frame: FramedMutSpace<'a, 'b>, value: <A as ScalarAtom>::InternalType, ) -> Option<&'a mut <A as ScalarAtom>::InternalType>
Initialize the body of the atom. Read more
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