pub(super) struct CompactLengthInner {
tagged_ptr: *const (),
}
Expand description
On 64 bit platforms the tag, value and pointer are packed into a single 64 bit pointer
The tagged pointer always has a tag and may contain an f32 value or a pointer (or neither) depending on the variant indicated by the tag.
Fields§
§tagged_ptr: *const ()
The tagged pointer
Implementations§
Source§impl CompactLengthInner
impl CompactLengthInner
Sourcepub(super) fn from_ptr(ptr: *const (), tag: usize) -> Self
pub(super) fn from_ptr(ptr: *const (), tag: usize) -> Self
Construct a CompactLengthInner
from a tag and pointer
Sourcepub(super) const fn from_val(val: f32, tag: usize) -> Self
pub(super) const fn from_val(val: f32, tag: usize) -> Self
Construct a CompactLengthInner
from a tag and numeric value
Trait Implementations§
Source§impl Clone for CompactLengthInner
impl Clone for CompactLengthInner
Source§fn clone(&self) -> CompactLengthInner
fn clone(&self) -> CompactLengthInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompactLengthInner
impl Debug for CompactLengthInner
Source§impl PartialEq for CompactLengthInner
impl PartialEq for CompactLengthInner
impl Copy for CompactLengthInner
impl StructuralPartialEq for CompactLengthInner
Auto Trait Implementations§
impl Freeze for CompactLengthInner
impl RefUnwindSafe for CompactLengthInner
impl !Send for CompactLengthInner
impl !Sync for CompactLengthInner
impl Unpin for CompactLengthInner
impl UnwindSafe for CompactLengthInner
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