Struct rat_widget::splitter::SplitStyle
source · pub struct SplitStyle {
pub style: Style,
pub arrow_style: Option<Style>,
pub drag_style: Option<Style>,
pub split_char: Option<&'static str>,
pub join_0_char: Option<&'static str>,
pub join_1_char: Option<&'static str>,
pub mark_offset: u16,
pub mark_0_char: Option<&'static str>,
pub mark_1_str: Option<&'static str>,
pub non_exhaustive: NonExhaustive,
}Expand description
Combined style for the splitter.
Fields§
§style: StyleBase style
arrow_style: Option<Style>Arrow style.
drag_style: Option<Style>Style while dragging.
split_char: Option<&'static str>Fill char for the split.
join_0_char: Option<&'static str>Left/Top join with the Split border.
join_1_char: Option<&'static str>Right/Bottom join with the Split border.
mark_offset: u16Offset for the mark from the top/left.
mark_0_char: Option<&'static str>Marker for a horizontal split. Only the first 2 chars are used.
mark_1_str: Option<&'static str>Marker for a vertical split. Only the first 2 chars are used.
non_exhaustive: NonExhaustiveTrait Implementations§
source§impl Debug for SplitStyle
impl Debug for SplitStyle
Auto Trait Implementations§
impl Freeze for SplitStyle
impl RefUnwindSafe for SplitStyle
impl Send for SplitStyle
impl Sync for SplitStyle
impl Unpin for SplitStyle
impl UnwindSafe for SplitStyle
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
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