pub enum DsmlState {
Search,
Structural,
ParamValue,
Done,
Error,
}Expand description
Parser progress; terminal states are Done and Error.
Variants§
Search
Scanning free text for the opening <|DSML|tool_calls> marker.
Structural
Between tags: expecting invoke/parameter open tags or close tags.
ParamValue
Accumulating a parameter value until its close tag arrives.
Done
A full tool_calls stanza was parsed.
Error
The stanza was malformed; see DsmlParser::error.
Trait Implementations§
impl Copy for DsmlState
impl Eq for DsmlState
impl StructuralPartialEq for DsmlState
Auto Trait Implementations§
impl Freeze for DsmlState
impl RefUnwindSafe for DsmlState
impl Send for DsmlState
impl Sync for DsmlState
impl Unpin for DsmlState
impl UnsafeUnpin for DsmlState
impl UnwindSafe for DsmlState
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