pub struct DevtoolSettings {
pub show_layout: bool,
pub highlight_hover: bool,
}Expand description
Configuration for debug overlays and other debugging tools
Fields§
§show_layout: boolOutline elements with different border colors depending on inner display style of that element
highlight_hover: boolRender browser-style colored overlay showing the content-box, padding, border, and margin of the hovered element
Implementations§
Source§impl DevtoolSettings
impl DevtoolSettings
Sourcepub fn toggle_show_layout(&mut self)
pub fn toggle_show_layout(&mut self)
Toggle the show_layout setting
Sourcepub fn toggle_highlight_hover(&mut self)
pub fn toggle_highlight_hover(&mut self)
Toggle the highlight_hover setting
Trait Implementations§
Source§impl Clone for DevtoolSettings
impl Clone for DevtoolSettings
Source§fn clone(&self) -> DevtoolSettings
fn clone(&self) -> DevtoolSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 DevtoolSettings
impl Debug for DevtoolSettings
Source§impl Default for DevtoolSettings
impl Default for DevtoolSettings
Source§fn default() -> DevtoolSettings
fn default() -> DevtoolSettings
Returns the “default value” for a type. Read more
impl Copy for DevtoolSettings
Auto Trait Implementations§
impl Freeze for DevtoolSettings
impl RefUnwindSafe for DevtoolSettings
impl Send for DevtoolSettings
impl Sync for DevtoolSettings
impl Unpin for DevtoolSettings
impl UnwindSafe for DevtoolSettings
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