pub struct ThreePaneScaffoldHorizontalOrder { /* private fields */ }Expand description
The order of a pane scaffold’s three panes, from start to end.
Implementations§
Source§impl ThreePaneScaffoldHorizontalOrder
impl ThreePaneScaffoldHorizontalOrder
Sourcepub const LIST_DETAIL: ThreePaneScaffoldHorizontalOrder
pub const LIST_DETAIL: ThreePaneScaffoldHorizontalOrder
The list-detail order: list, detail, extra.
Sourcepub const SUPPORTING: ThreePaneScaffoldHorizontalOrder
pub const SUPPORTING: ThreePaneScaffoldHorizontalOrder
The supporting-pane order: main, supporting, extra.
Sourcepub fn new(
first: ThreePaneScaffoldRole,
second: ThreePaneScaffoldRole,
third: ThreePaneScaffoldRole,
) -> ThreePaneScaffoldHorizontalOrder
pub fn new( first: ThreePaneScaffoldRole, second: ThreePaneScaffoldRole, third: ThreePaneScaffoldRole, ) -> ThreePaneScaffoldHorizontalOrder
Creates an order; panics unless the three roles differ.
Sourcepub fn roles(self) -> [ThreePaneScaffoldRole; 3]
pub fn roles(self) -> [ThreePaneScaffoldRole; 3]
The roles from start to end.
Sourcepub fn get(self, index: usize) -> ThreePaneScaffoldRole
pub fn get(self, index: usize) -> ThreePaneScaffoldRole
The role at index, from the start.
Sourcepub fn index_of(self, role: ThreePaneScaffoldRole) -> usize
pub fn index_of(self, role: ThreePaneScaffoldRole) -> usize
The index of role from the start.
Sourcepub fn to_ltr(
self,
text_direction: TextDirection,
) -> ThreePaneScaffoldHorizontalOrder
pub fn to_ltr( self, text_direction: TextDirection, ) -> ThreePaneScaffoldHorizontalOrder
This order from left to right: mirrored for a right-to-left direction.
Trait Implementations§
impl Copy for ThreePaneScaffoldHorizontalOrder
impl Eq for ThreePaneScaffoldHorizontalOrder
impl StructuralPartialEq for ThreePaneScaffoldHorizontalOrder
Auto Trait Implementations§
impl Forget for ThreePaneScaffoldHorizontalOrder
impl Freeze for ThreePaneScaffoldHorizontalOrder
impl Move for ThreePaneScaffoldHorizontalOrder
impl RefUnwindSafe for ThreePaneScaffoldHorizontalOrder
impl Send for ThreePaneScaffoldHorizontalOrder
impl Sync for ThreePaneScaffoldHorizontalOrder
impl Unpin for ThreePaneScaffoldHorizontalOrder
impl UnsafeUnpin for ThreePaneScaffoldHorizontalOrder
impl UnwindSafe for ThreePaneScaffoldHorizontalOrder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.