pub struct FakeSource { /* private fields */ }Expand description
A scripted FrameSource for tests and demos: yields its frames in order,
then repeats the final frame forever.
Implementations§
Source§impl FakeSource
impl FakeSource
pub fn new(frames: impl IntoIterator<Item = Frame>) -> Self
Trait Implementations§
Source§impl FrameSource for FakeSource
impl FrameSource for FakeSource
Auto Trait Implementations§
impl Freeze for FakeSource
impl RefUnwindSafe for FakeSource
impl Send for FakeSource
impl Sync for FakeSource
impl Unpin for FakeSource
impl UnsafeUnpin for FakeSource
impl UnwindSafe for FakeSource
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