pub struct RecordState<'a> {
pub file_states: Vec<(PathBuf, FileState<'a>)>,
}
Expand description
The state used to render the changes. This is passed into [Recorder::new
]
and then updated and returned with [Recorder::run
].
Fields§
§file_states: Vec<(PathBuf, FileState<'a>)>
The state of each file. This is rendered in order, so you may want to sort this list by path before providing it.
Trait Implementations§
Source§impl<'a> Clone for RecordState<'a>
impl<'a> Clone for RecordState<'a>
Source§fn clone(&self) -> RecordState<'a>
fn clone(&self) -> RecordState<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for RecordState<'a>
impl<'a> RefUnwindSafe for RecordState<'a>
impl<'a> Send for RecordState<'a>
impl<'a> Sync for RecordState<'a>
impl<'a> Unpin for RecordState<'a>
impl<'a> UnwindSafe for RecordState<'a>
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