pub struct PanelConfig {
pub side: PanelSide,
pub layer: PanelLayer,
pub width: u32,
pub margin: u32,
pub nav_toolbar: bool,
}Expand description
Dock/panel configuration. Field-level serde defaults keep a partially
written [panel] table valid without consulting Self::default() (which
parses the shipped file — see [builtin]).
Fields§
§side: PanelSide§layer: PanelLayer§width: u32Panel width in pixels.
margin: u32Pixel margin around the panel within the screen edge.
Show a navigation toolbar (up one level, back, forward) directly below
the path bar. Off by default; the same actions stay on [pane_menu].
Trait Implementations§
Source§impl Clone for PanelConfig
impl Clone for PanelConfig
impl Copy for PanelConfig
Source§impl Debug for PanelConfig
impl Debug for PanelConfig
Source§impl Default for PanelConfig
impl Default for PanelConfig
Source§impl<'de> Deserialize<'de> for PanelConfig
impl<'de> Deserialize<'de> for PanelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PanelConfig
Source§impl PartialEq for PanelConfig
impl PartialEq for PanelConfig
Source§impl Serialize for PanelConfig
impl Serialize for PanelConfig
impl StructuralPartialEq for PanelConfig
Auto Trait Implementations§
impl Freeze for PanelConfig
impl RefUnwindSafe for PanelConfig
impl Send for PanelConfig
impl Sync for PanelConfig
impl Unpin for PanelConfig
impl UnsafeUnpin for PanelConfig
impl UnwindSafe for PanelConfig
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more