#[non_exhaustive]pub struct LayoutOptions {
pub color: ColorPolicy,
pub claude_padding: u16,
pub separator: Option<String>,
pub powerline_width: Option<u16>,
}Expand description
[layout_options] section: render-path tunables that aren’t tied
to a specific segment. See docs/specs/config.md §layout_options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.color: ColorPolicy§claude_padding: u16§separator: Option<String>Inter-segment separator. Stored as a raw string; the segment
builder parses it into a crate::segments::Separator at
build time so unknown values warn and fall back to space
rather than failing the whole config load. See
docs/specs/config.md for the reserved-keyword set
(space, powerline, capsule, flex, "") and the
arbitrary-literal fallback.
powerline_width: Option<u16>Cell-count for the Nerd Font powerline chevron (U+E0B0). Only
1 (the default; matches modern Nerd Fonts at standard sizes)
and 2 (some older builds / larger sizes) are meaningful.
Takes effect only when a powerline separator is in use; setting
it under separator = "space" is harmless but inert.
Trait Implementations§
Source§impl Clone for LayoutOptions
impl Clone for LayoutOptions
Source§fn clone(&self) -> LayoutOptions
fn clone(&self) -> LayoutOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LayoutOptions
impl Debug for LayoutOptions
Source§impl Default for LayoutOptions
impl Default for LayoutOptions
Source§fn default() -> LayoutOptions
fn default() -> LayoutOptions
Source§impl<'de> Deserialize<'de> for LayoutOptionswhere
LayoutOptions: Default,
impl<'de> Deserialize<'de> for LayoutOptionswhere
LayoutOptions: Default,
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>,
Source§impl JsonSchema for LayoutOptions
impl JsonSchema for LayoutOptions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for LayoutOptions
impl PartialEq for LayoutOptions
Source§fn eq(&self, other: &LayoutOptions) -> bool
fn eq(&self, other: &LayoutOptions) -> bool
self and other values to be equal, and is used by ==.impl Eq for LayoutOptions
impl StructuralPartialEq for LayoutOptions
Auto Trait Implementations§
impl Freeze for LayoutOptions
impl RefUnwindSafe for LayoutOptions
impl Send for LayoutOptions
impl Sync for LayoutOptions
impl Unpin for LayoutOptions
impl UnsafeUnpin for LayoutOptions
impl UnwindSafe for LayoutOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.