pub struct MockPaneResizer {
pub calls: Mutex<Vec<(String, u16, u16)>>,
}Expand description
Records every resize invocation as (session, cols, rows).
Backed by Mutex (not RefCell) so the Send + Sync bound
on PaneResizer is satisfiable for parity with PaneSource.
Fields§
§calls: Mutex<Vec<(String, u16, u16)>>Trait Implementations§
Source§impl Debug for MockPaneResizer
impl Debug for MockPaneResizer
Source§impl Default for MockPaneResizer
impl Default for MockPaneResizer
Source§fn default() -> MockPaneResizer
fn default() -> MockPaneResizer
Returns the “default value” for a type. Read more
Source§impl PaneResizer for MockPaneResizer
impl PaneResizer for MockPaneResizer
Auto Trait Implementations§
impl !Freeze for MockPaneResizer
impl RefUnwindSafe for MockPaneResizer
impl Send for MockPaneResizer
impl Sync for MockPaneResizer
impl Unpin for MockPaneResizer
impl UnsafeUnpin for MockPaneResizer
impl UnwindSafe for MockPaneResizer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more