pub struct VirtualContext<T> {
pub response: VirtualResponse,
pub comparer: Rc<dyn Fn(&T, &T) -> Ordering>,
pub options: SortAndVirtualizeOptions,
}Expand description
The window of a change set of SortAndVirtualize, with the comparer and the options
(record VirtualContext<TObject>).
Fields§
§response: VirtualResponseThe window (Response).
comparer: Rc<dyn Fn(&T, &T) -> Ordering>The comparer of the sort (Comparer).
options: SortAndVirtualizeOptionsThe options (Options).
Implementations§
Source§impl<T> VirtualContext<T>
impl<T> VirtualContext<T>
Sourcepub fn new(
response: VirtualResponse,
comparer: Rc<dyn Fn(&T, &T) -> Ordering>,
options: SortAndVirtualizeOptions,
) -> Self
pub fn new( response: VirtualResponse, comparer: Rc<dyn Fn(&T, &T) -> Ordering>, options: SortAndVirtualizeOptions, ) -> Self
A context of its parts.
Trait Implementations§
Source§impl<T> Clone for VirtualContext<T>
impl<T> Clone for VirtualContext<T>
Source§impl<T> Debug for VirtualContext<T>
impl<T> Debug for VirtualContext<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for VirtualContext<T>
impl<T> !Send for VirtualContext<T>
impl<T> !Sync for VirtualContext<T>
impl<T> !UnwindSafe for VirtualContext<T>
impl<T> Freeze for VirtualContext<T>
impl<T> Unpin for VirtualContext<T>
impl<T> UnsafeUnpin for VirtualContext<T>
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