#[repr(transparent)]pub struct Modifier(pub u16);Expand description
Modifier flags (2 bytes)
Controls styling and attributes of opcode output. Bit layout:
Bit: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
[--VOICE--] [--TONE--] [-WARM-] [--FORMAT--] [ACCURACY] [URGENCY]- Voice (bits 15-14): Speaking style - Neutral, Formal, Casual, Technical
- Tone (bits 13-12): Emotional tone - Neutral, Positive, Empathetic, Cautious
- Warmth (bits 11-10): Interpersonal warmth - Cold, Neutral, Warm, VeryWarm
- Format (bits 9-8): Output format - Prose, Bulleted, Numbered, Structured
- Accuracy (bits 7-6): Confidence level - Low, Medium, High, Verified
- Urgency (bits 5-4): Priority level - Low, Normal, High, Critical
- Reserved (bits 3-0): For future use
Tuple Fields§
§0: u16Implementations§
Source§impl Modifier
impl Modifier
pub const VOICE_NEUTRAL: Self
pub const VOICE_FORMAL: Self
pub const VOICE_CASUAL: Self
pub const VOICE_TECHNICAL: Self
pub const TONE_NEUTRAL: Self
pub const TONE_POSITIVE: Self
pub const TONE_EMPATHETIC: Self
pub const TONE_CAUTIOUS: Self
pub const WARMTH_COLD: Self
pub const WARMTH_NEUTRAL: Self
pub const WARMTH_WARM: Self
pub const WARMTH_VERY_WARM: Self
pub const FORMAT_PROSE: Self
pub const FORMAT_BULLETED: Self
pub const FORMAT_NUMBERED: Self
pub const FORMAT_STRUCTURED: Self
pub const ACCURACY_LOW: Self
pub const ACCURACY_MEDIUM: Self
pub const ACCURACY_HIGH: Self
pub const ACCURACY_VERIFIED: Self
pub const URGENCY_LOW: Self
pub const URGENCY_NORMAL: Self
pub const URGENCY_HIGH: Self
pub const URGENCY_CRITICAL: Self
Sourcepub const fn with_voice(self, voice: Voice) -> Self
pub const fn with_voice(self, voice: Voice) -> Self
Set voice style
Sourcepub const fn with_warmth(self, warmth: Warmth) -> Self
pub const fn with_warmth(self, warmth: Warmth) -> Self
Set warmth level
Sourcepub const fn with_format(self, format: Format) -> Self
pub const fn with_format(self, format: Format) -> Self
Set output format
Sourcepub const fn with_accuracy(self, accuracy: Accuracy) -> Self
pub const fn with_accuracy(self, accuracy: Accuracy) -> Self
Set accuracy level
Sourcepub const fn with_urgency(self, urgency: Urgency) -> Self
pub const fn with_urgency(self, urgency: Urgency) -> Self
Set urgency level
Sourcepub const fn crisis() -> Self
pub const fn crisis() -> Self
Create a crisis-appropriate modifier (empathetic, warm, high urgency)
Sourcepub const fn professional() -> Self
pub const fn professional() -> Self
Create a professional modifier (formal, neutral warmth)
Trait Implementations§
impl Copy for Modifier
Source§impl<'de> Deserialize<'de> for Modifier
impl<'de> Deserialize<'de> for Modifier
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
impl Eq for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin for Modifier
impl UnwindSafe for Modifier
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