Struct booklibrs::restore::caretaker::Caretaker[][src]

pub struct Caretaker { /* fields omitted */ }

Implementations

impl Caretaker[src]

Handles with all mementos by returning states (next or last)

pub fn new() -> Self[src]

Creates new caretaker

pub fn get_memento_back(
    &mut self,
    reader_base: &mut ReaderBase,
    book_system: &mut BookSystem,
    genres: &mut Genres
)
[src]

Gets reference to previous memento

pub fn get_memento_forward(
    &mut self,
    reader_base: &mut ReaderBase,
    book_system: &mut BookSystem,
    genres: &mut Genres
)
[src]

Gets reference to next memento

pub fn add_memento(
    &mut self,
    reader_base: &ReaderBase,
    book_system: &BookSystem,
    genres: &Genres
) -> &mut Self
[src]

Adds new state

pub unsafe fn __ind_minus(&mut self)[src]

DON'T USE IT

Trait Implementations

impl Debug for Caretaker[src]

Auto Trait Implementations

impl !RefUnwindSafe for Caretaker

impl !Send for Caretaker

impl !Sync for Caretaker

impl Unpin for Caretaker

impl !UnwindSafe for Caretaker

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.