pub enum DataChange {
Replace,
Append {
count: usize,
},
UpdateLast,
Prepend {
count: usize,
},
}Expand description
A data change, as seen by downstream consumers (LOD, indicators).
§Examples
use ferrochart_core::data::DataChange;
let change = DataChange::Append { count: 2 };
assert_ne!(change, DataChange::UpdateLast);Variants§
Replace
Everything was replaced.
Append
count bars were added at the end.
UpdateLast
The last bar was modified (the main real-time path).
Prepend
count bars were added at the beginning (history loading).
Trait Implementations§
Source§impl Clone for DataChange
impl Clone for DataChange
impl Copy for DataChange
Source§impl Debug for DataChange
impl Debug for DataChange
impl Eq for DataChange
Source§impl PartialEq for DataChange
impl PartialEq for DataChange
impl StructuralPartialEq for DataChange
Auto Trait Implementations§
impl Forget for DataChange
impl Freeze for DataChange
impl Move for DataChange
impl RefUnwindSafe for DataChange
impl Send for DataChange
impl Sync for DataChange
impl Unpin for DataChange
impl UnsafeUnpin for DataChange
impl UnwindSafe for DataChange
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