pub struct MovieLibrary { /* private fields */ }Expand description
The films of an app, ready to be asked about. Cloning is cheap.
use ravenrs_core::{Color, Size};
use ravenrs_movie::{FilmBuilder, MovieLibrary};
let mut film = FilmBuilder::new(Size::new(320.0, 200.0), Color::WHITE);
film.frame(0, &[]);
film.chapter("Pagar uma conta", "Como dar baixa no que venceu.", 0);
let library = MovieLibrary::new().film("Manual", film.finish(1000)?);
assert_eq!(library.ask("como pago as contas?", 3)[0].moment.title, "Pagar uma conta");Implementations§
Trait Implementations§
Source§impl Clone for MovieLibrary
impl Clone for MovieLibrary
Source§fn clone(&self) -> MovieLibrary
fn clone(&self) -> MovieLibrary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MovieLibrary
impl Debug for MovieLibrary
Auto Trait Implementations§
impl !RefUnwindSafe for MovieLibrary
impl !Send for MovieLibrary
impl !Sync for MovieLibrary
impl !UnwindSafe for MovieLibrary
impl Freeze for MovieLibrary
impl Unpin for MovieLibrary
impl UnsafeUnpin for MovieLibrary
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