pub struct PerspectiveStack {
pub stack: Vec<PerspectiveId>,
pub resolved_style: CognitiveStyle,
}Expand description
The active perspective context (supports layering).
Bottom = base personality, top = most recent context override. Salience multipliers are multiplicative across layers. Cognitive styles blend with higher layers getting more weight.
Fields§
§stack: Vec<PerspectiveId>Ordered stack of active perspective IDs.
resolved_style: CognitiveStyleCached merged cognitive style.
Implementations§
Trait Implementations§
Source§impl Clone for PerspectiveStack
impl Clone for PerspectiveStack
Source§fn clone(&self) -> PerspectiveStack
fn clone(&self) -> PerspectiveStack
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerspectiveStack
impl Debug for PerspectiveStack
Source§impl<'de> Deserialize<'de> for PerspectiveStack
impl<'de> Deserialize<'de> for PerspectiveStack
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
Auto Trait Implementations§
impl Freeze for PerspectiveStack
impl RefUnwindSafe for PerspectiveStack
impl Send for PerspectiveStack
impl Sync for PerspectiveStack
impl Unpin for PerspectiveStack
impl UnsafeUnpin for PerspectiveStack
impl UnwindSafe for PerspectiveStack
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