pub enum BookAction {
Click {
x: f32,
y: f32,
},
Show {
entry: String,
page: usize,
},
Home,
}Expand description
What the reader does before the book is drawn.
Variants§
Click
A click at GUI pixels x, y.
Show
Go to an entry’s page (the document’s selection).
Home
Back to the landing page.
Trait Implementations§
Source§impl Clone for BookAction
impl Clone for BookAction
Source§impl Debug for BookAction
impl Debug for BookAction
Source§impl<'de> Deserialize<'de> for BookAction
impl<'de> Deserialize<'de> for BookAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BookAction
impl RefUnwindSafe for BookAction
impl Send for BookAction
impl Sync for BookAction
impl Unpin for BookAction
impl UnsafeUnpin for BookAction
impl UnwindSafe for BookAction
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