pub enum RegionDelta {
Set(RegionSnapshot),
Append {
name: String,
entries: Vec<RegionEntrySnapshot>,
current_tokens: usize,
},
Clear {
name: String,
},
Remove {
name: String,
},
}Expand description
A per-region change within a ContextDelta.
Variants§
Set(RegionSnapshot)
A new region, or a region whose kind/max changed or whose entries were rewritten in a non-append way - carried in full.
Append
Entries appended to an existing region (the common between-inference case). The region’s kind/max are unchanged.
Fields
§
entries: Vec<RegionEntrySnapshot>The entries appended after the previously-recorded ones.
Clear
An existing region emptied of entries.
Remove
A region that no longer exists.
Trait Implementations§
Source§impl Clone for RegionDelta
impl Clone for RegionDelta
Source§fn clone(&self) -> RegionDelta
fn clone(&self) -> RegionDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionDelta
impl Debug for RegionDelta
Source§impl<'de> Deserialize<'de> for RegionDelta
impl<'de> Deserialize<'de> for RegionDelta
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
Source§impl PartialEq for RegionDelta
impl PartialEq for RegionDelta
Source§impl Serialize for RegionDelta
impl Serialize for RegionDelta
impl StructuralPartialEq for RegionDelta
Auto Trait Implementations§
impl Freeze for RegionDelta
impl RefUnwindSafe for RegionDelta
impl Send for RegionDelta
impl Sync for RegionDelta
impl Unpin for RegionDelta
impl UnsafeUnpin for RegionDelta
impl UnwindSafe for RegionDelta
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