pub struct Long;
Expand description
A scalar atom containing a i64
(i64
on most platforms).
Trait Implementations§
Source§impl ScalarAtom for Long
impl ScalarAtom for Long
Source§type InternalType = i64
type InternalType = i64
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 Long
impl RefUnwindSafe for Long
impl Send for Long
impl Sync for Long
impl Unpin for Long
impl UnwindSafe for Long
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