pub struct Null;
Expand description
A renderer that does nothing.
It can be useful if you are writing tests!
Implementations§
Trait Implementations§
source§impl Renderer for Null
impl Renderer for Null
source§const CHECKMARK_ICON: char = '0'
const CHECKMARK_ICON: char = '0'
The
char
representing a ✔ icon in the ICON_FONT
.source§const ARROW_DOWN_ICON: char = '0'
const ARROW_DOWN_ICON: char = '0'
The
char
representing a ▼ icon in the built-in ICON_FONT
.source§fn default_font(&self) -> Self::Font
fn default_font(&self) -> Self::Font
Returns the default
Self::Font
.source§fn default_size(&self) -> Pixels
fn default_size(&self) -> Pixels
Returns the default size of
Text
.source§fn fill_paragraph(
&mut self,
_paragraph: &Self::Paragraph,
_position: Point,
_color: Color,
_clip_bounds: Rectangle
)
fn fill_paragraph( &mut self, _paragraph: &Self::Paragraph, _position: Point, _color: Color, _clip_bounds: Rectangle )
source§impl Renderer for Null
impl Renderer for Null
source§fn with_layer(&mut self, _bounds: Rectangle, _f: impl FnOnce(&mut Self))
fn with_layer(&mut self, _bounds: Rectangle, _f: impl FnOnce(&mut Self))
Draws the primitives recorded in the given closure in a new layer. Read more
source§fn with_transformation(
&mut self,
_transformation: Transformation,
_f: impl FnOnce(&mut Self)
)
fn with_transformation( &mut self, _transformation: Transformation, _f: impl FnOnce(&mut Self) )
Applies a
Transformation
to the primitives recorded in the given closure.source§fn fill_quad(&mut self, _quad: Quad, _background: impl Into<Background>)
fn fill_quad(&mut self, _quad: Quad, _background: impl Into<Background>)
Fills a
Quad
with the provided Background
.impl Copy for Null
Auto Trait Implementations§
impl RefUnwindSafe for Null
impl Send for Null
impl Sync for Null
impl Unpin for Null
impl UnwindSafe for Null
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