pub struct App { /* private fields */ }Expand description
Mutable application state driving the three-pane UI.
Implementations§
Source§impl App
impl App
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Construct a fresh App using the current working directory as the
starting point.
Sourcepub fn inject_lua_engine_for_tests(
&mut self,
engine: LuaEngine,
action_keys: Vec<RegistryKey>,
)
pub fn inject_lua_engine_for_tests( &mut self, engine: LuaEngine, action_keys: Vec<RegistryKey>, )
Test helper: inject a prepared Lua engine and registered action keys.
This lets integration tests execute Lua callbacks without loading files from disk.
Auto Trait Implementations§
impl Freeze for App
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
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> 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