pub struct CodexParserState {
pub streaming_session: Rc<RefCell<StreamingSession>>,
pub reasoning_accumulator: Rc<RefCell<DeltaAccumulator>>,
pub turn_counter: Rc<RefCell<u64>>,
pub terminal_mode: RefCell<TerminalMode>,
pub last_rendered_content: RefCell<HashMap<String, String>>,
}Fields§
§streaming_session: Rc<RefCell<StreamingSession>>§reasoning_accumulator: Rc<RefCell<DeltaAccumulator>>§turn_counter: Rc<RefCell<u64>>§terminal_mode: RefCell<TerminalMode>§last_rendered_content: RefCell<HashMap<String, String>>Implementations§
Source§impl CodexParserState
impl CodexParserState
pub fn new(verbose_warnings: bool) -> Self
pub fn with_session_mut<R>( &self, f: impl FnOnce(&mut StreamingSession) -> R, ) -> R
pub fn with_reasoning_accumulator_mut<R>( &self, f: impl FnOnce(&mut DeltaAccumulator) -> R, ) -> R
pub fn with_turn_counter_mut<R>(&self, f: impl FnOnce(&mut u64) -> R) -> R
pub fn with_last_rendered_content_mut<R>( &self, f: impl FnOnce(&mut HashMap<String, String>) -> R, ) -> R
Auto Trait Implementations§
impl !Freeze for CodexParserState
impl !RefUnwindSafe for CodexParserState
impl !Send for CodexParserState
impl !Sync for CodexParserState
impl Unpin for CodexParserState
impl UnsafeUnpin for CodexParserState
impl !UnwindSafe for CodexParserState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more