#[repr(C)]pub struct ContextLayout {
pub header: u64,
pub conversation_id: u64,
pub message_count: u64,
pub tool_states: [ToolState; 25],
}Expand description
Context memory layout
Fields§
§header: u64Magic + version (8 bytes)
conversation_id: u64Conversation ID (8 bytes)
message_count: u64Message count (8 bytes)
tool_states: [ToolState; 25]Tool states: 25 tools × 40 bytes = 1000 bytes
Implementations§
Trait Implementations§
Source§impl Clone for ContextLayout
impl Clone for ContextLayout
Source§fn clone(&self) -> ContextLayout
fn clone(&self) -> ContextLayout
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 moreimpl Copy for ContextLayout
Auto Trait Implementations§
impl Freeze for ContextLayout
impl RefUnwindSafe for ContextLayout
impl Send for ContextLayout
impl Sync for ContextLayout
impl Unpin for ContextLayout
impl UnsafeUnpin for ContextLayout
impl UnwindSafe for ContextLayout
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