pub enum Suffix {
ColonEol,
Eol,
Colon,
}Expand description
Represents the different suffix patterns that can follow an inference key.
Inference keys in AIM files can have different termination patterns that indicate how the key’s value should be parsed and interpreted. The parser tries patterns in a specific order of precedence.
Variants§
ColonEol
Key followed by colon and end-of-line (e.g., INSTRUCTIONS:\\n)
This indicates a multi-line value follows on subsequent lines.
This pattern has the highest precedence in parsing.
Eol
Key followed by optional whitespace and end-of-line (e.g., SYSTEM\\n)
This indicates a simple value follows on the same line or in the response parser
indicates that list items follow.
This pattern has medium precedence in parsing.
Colon
Key followed by colon (e.g., MODEL:)
This indicates an inline value follows on the same line.
This pattern has the lowest precedence in parsing.
Trait Implementations§
impl Eq for Suffix
impl StructuralPartialEq for Suffix
Auto Trait Implementations§
impl Freeze for Suffix
impl RefUnwindSafe for Suffix
impl Send for Suffix
impl Sync for Suffix
impl Unpin for Suffix
impl UnwindSafe for Suffix
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.