pub struct Overrides { /* private fields */ }Expand description
Per-frame property patch. Produced by clip/state-machine playback,
consumed by evaluate_with. Never touches the document.
Internally values is keyed NodeId -> prop-name -> value so
Overrides::get borrows &str with no per-lookup allocation.
PropPath stays the canonical String newtype on disk for a stable
.ren format; only the hot lookup path avoids allocating.
Implementations§
Source§impl Overrides
impl Overrides
pub fn set(&mut self, id: NodeId, prop: PropPath, v: Value)
Sourcepub fn set_str(&mut self, id: NodeId, prop: &str, v: Value)
pub fn set_str(&mut self, id: NodeId, prop: &str, v: Value)
Borrowed insert used when the caller already has &str
(e.g. replaying host overrides without rebuilding a PropPath).
Sourcepub fn get(&self, id: NodeId, prop: &str) -> Option<&Value>
pub fn get(&self, id: NodeId, prop: &str) -> Option<&Value>
Allocation-free lookup: Box<str> borrows as str.
Sourcepub fn iter(&self) -> impl Iterator<Item = (NodeId, &str, &Value)>
pub fn iter(&self) -> impl Iterator<Item = (NodeId, &str, &Value)>
Iterate (node, prop-name, value) without allocating PropPaths.
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
impl StructuralPartialEq for Overrides
Auto Trait Implementations§
impl Freeze for Overrides
impl RefUnwindSafe for Overrides
impl Send for Overrides
impl Sync for Overrides
impl Unpin for Overrides
impl UnsafeUnpin for Overrides
impl UnwindSafe for Overrides
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