Skip to main content

Strip

Enum Strip 

Source
pub enum Strip {
    Across,
    Down,
}
Expand description

Which way a Region::TabGroup’s strip runs.

Across is a row of tabs over the panes it opens; down is a column of them beside the panes. Both are the folder semantic, one pane showing at a time, and both put the strip first, so a tab is always read before the pane it opens.

§Why the description says it

Leaving it to each renderer was the earlier reading, and the measurement ran the other way: every renderer picked across, so a tab group that wanted a column had no way to get one. MNW’s settings sections were a column beside their panes until they were described, and describing them flattened them into a row. Counted on the MNW dashboards (2026-09-12): five strips run across, one runs down today, four long panels want a strip down beside their sections, and two screens carry both. Max’s ruling is that the language says both.

§What is here and what is not

The direction, carried beside the region the way Showing is: this crate names the fact and the holder of the region states it, because the region member is a place and not a record of how it is dressed.

No default. A tab group that says nothing about its strip is the silence this type exists to end, so a holder has to pick one.

No breakpoint. Room is still the renderer’s to measure. A strip that runs down may fold over its panes when there is no room beside them, the way a row folds into a menu; what it may not do is run across when there is room, because then the description stopped being what was drawn.

Variants§

§

Across

A row over the panes.

§

Down

A column beside the panes.

Implementations§

Source§

impl Strip

Source

pub const fn runs_down(self) -> bool

Whether the tabs stack vertically.

What a renderer asks for the two things that turn on direction rather than on placement: the accessibility orientation a strip announces, and which pair of arrow keys moves between its tabs. A method for Region::name’s reason, so three renderers do not each write the comparison.

Trait Implementations§

Source§

impl Clone for Strip

Source§

fn clone(&self) -> Strip

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Strip

Source§

impl Debug for Strip

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Strip

Source§

impl Hash for Strip

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Strip

Source§

fn eq(&self, other: &Strip) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Strip

Auto Trait Implementations§

§

impl Freeze for Strip

§

impl RefUnwindSafe for Strip

§

impl Send for Strip

§

impl Sync for Strip

§

impl Unpin for Strip

§

impl UnsafeUnpin for Strip

§

impl UnwindSafe for Strip

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.