pub struct Debug {
pub enable: bool,
pub grid: bool,
pub grid_step: u32,
pub color: SolidColor,
}Expand description
A struct to describe a Layout’s visual debug output.
Fields§
§enable: boolA flag to enable or disable the debug output.
grid: boolA flag to control if the debug output shall show a grid of points over the layout.
grid_step: u32The space between points on the debug output’s grid.
color: SolidColorThe color used to outline debug output.
Implementations§
Source§impl Debug
impl Debug
Sourcepub fn get_foreground_color(&self) -> SolidColor
pub fn get_foreground_color(&self) -> SolidColor
Calculate a black or white foreground color using Debug::color as a background.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Debug
impl<'de> Deserialize<'de> for Debug
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Debug
impl RefUnwindSafe for Debug
impl Send for Debug
impl Sync for Debug
impl Unpin for Debug
impl UnsafeUnpin for Debug
impl UnwindSafe for Debug
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