Enum hex_patch::app::popup::popup_state::PopupState
source · pub enum PopupState {
Show 14 variants
Open {
currently_open_path: String,
path: String,
cursor: usize,
results: Vec<PathResult>,
scroll: usize,
},
Run {
command: String,
cursor: usize,
results: Vec<CommandInfo>,
scroll: usize,
},
FindText {
text: String,
cursor: usize,
},
FindSymbol {
filter: String,
cursor: usize,
symbols: Vec<(u64, String)>,
scroll: usize,
},
Log(usize),
InsertText {
text: String,
cursor: usize,
},
Patch {
assembly: String,
preview: Result<Vec<u8>, String>,
cursor: usize,
},
JumpToAddress {
location: String,
cursor: usize,
},
QuitDirtySave(SimpleChoice),
SaveAndQuit(BinaryChoice),
SaveAs {
path: String,
cursor: usize,
},
Save(BinaryChoice),
Help(usize),
Custom {
plugin_index: usize,
callback: String,
},
}Variants§
Open
Fields
§
results: Vec<PathResult>Run
FindText
FindSymbol
Log(usize)
InsertText
Patch
JumpToAddress
QuitDirtySave(SimpleChoice)
SaveAndQuit(BinaryChoice)
SaveAs
Save(BinaryChoice)
Help(usize)
Custom
Trait Implementations§
source§impl Clone for PopupState
impl Clone for PopupState
source§fn clone(&self) -> PopupState
fn clone(&self) -> PopupState
Returns a copy 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 Freeze for PopupState
impl RefUnwindSafe for PopupState
impl Send for PopupState
impl Sync for PopupState
impl Unpin for PopupState
impl UnwindSafe for PopupState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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