pub struct PreviewState { /* private fields */ }Implementations§
Source§impl PreviewState
impl PreviewState
pub fn data(&self) -> &PreviewData
pub fn selected_idx(&self) -> usize
pub fn request_id(&self) -> u64
pub fn set_selected_idx(&mut self, idx: usize)
pub fn mark_pending(&mut self)
pub fn should_trigger(&self) -> bool
pub fn prepare_new_request(&mut self, path: PathBuf) -> u64
pub fn update_content(&mut self, lines: Vec<String>, request_id: u64)
pub fn update_from_entries(&mut self, entries: Vec<FileEntry>, request_id: u64)
pub fn set_error(&mut self, err: String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreviewState
impl RefUnwindSafe for PreviewState
impl Send for PreviewState
impl Sync for PreviewState
impl Unpin for PreviewState
impl UnwindSafe for PreviewState
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