pub struct TraceLayout {
pub flags_offset: usize,
pub group_count: usize,
pub summary_offset: usize,
pub summary_count: usize,
/* private fields */
}Fields§
§flags_offset: usize§group_count: usize§summary_offset: usize§summary_count: usizeImplementations§
Source§impl TraceLayout
impl TraceLayout
pub fn end_offset(&self) -> usize
pub fn validate( &self, stable_size: usize, metadata_start: usize, scratch_start: usize, ) -> bool
Sourcepub fn notification_offsets(&self, stable_home: usize) -> [usize; 2]
pub fn notification_offsets(&self, stable_home: usize) -> [usize; 2]
Two byte stores suffice: no read/modify/write in generated hot paths.
Sourcepub unsafe fn mark_home(&self, memory: *mut u8, home: usize)
pub unsafe fn mark_home(&self, memory: *mut u8, home: usize)
§Safety
memory must exclusively reference the complete writable state image.
Trait Implementations§
Source§impl Clone for TraceLayout
impl Clone for TraceLayout
Source§fn clone(&self) -> TraceLayout
fn clone(&self) -> TraceLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraceLayout
impl Debug for TraceLayout
Source§impl<'de> Deserialize<'de> for TraceLayout
impl<'de> Deserialize<'de> for TraceLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TraceLayout
impl RefUnwindSafe for TraceLayout
impl Send for TraceLayout
impl Sync for TraceLayout
impl Unpin for TraceLayout
impl UnsafeUnpin for TraceLayout
impl UnwindSafe for TraceLayout
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