pub struct PageStateDiff { /* private fields */ }Expand description
Tracker for page state changes across rounds.
Implementations§
Source§impl PageStateDiff
impl PageStateDiff
Sourcepub fn new() -> PageStateDiff
pub fn new() -> PageStateDiff
Create a new empty state tracker.
Sourcepub fn update(&mut self, html: &str, url: &str, title: &str) -> HtmlDiffResult
pub fn update(&mut self, html: &str, url: &str, title: &str) -> HtmlDiffResult
Update state with new page content.
Returns the diff result for this update.
Sourcepub fn is_initial(&self) -> bool
pub fn is_initial(&self) -> bool
Check if this is the first round.
Trait Implementations§
Source§impl Clone for PageStateDiff
impl Clone for PageStateDiff
Source§fn clone(&self) -> PageStateDiff
fn clone(&self) -> PageStateDiff
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 PageStateDiff
impl Debug for PageStateDiff
Source§impl Default for PageStateDiff
impl Default for PageStateDiff
Source§fn default() -> PageStateDiff
fn default() -> PageStateDiff
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PageStateDiff
impl RefUnwindSafe for PageStateDiff
impl Send for PageStateDiff
impl Sync for PageStateDiff
impl Unpin for PageStateDiff
impl UnwindSafe for PageStateDiff
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