pub struct Void;
Expand description
Void renderer used for testing
Trait Implementations
sourceimpl Renderer for Void
impl Renderer for Void
type Image = VoidImage
fn set_size(&mut self, width: u32, height: u32, dpi: f32)
fn render(
&mut self,
images: &mut ImageStore<VoidImage>,
verts: &[Vertex],
commands: Vec<Command>
)
fn alloc_image(&mut self, info: ImageInfo) -> Result<Self::Image, ErrorKind>
fn update_image(
&mut self,
image: &mut Self::Image,
data: ImageSource<'_>,
x: usize,
y: usize
) -> Result<(), ErrorKind>
fn delete_image(&mut self, image: Self::Image, _image_id: ImageId)
fn screenshot(&mut self) -> Result<ImgVec<RGBA8>, ErrorKind>
Auto Trait Implementations
impl RefUnwindSafe for Void
impl Send for Void
impl Sync for Void
impl Unpin for Void
impl UnwindSafe for Void
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more