pub struct StackDetails {
pub orientation: Orientation,
pub len: usize,
pub face_up_len: usize,
pub visible_len: usize,
pub spread_len: usize,
pub selection: Option<StackSelection>,
}
Fields§
§orientation: Orientation
§len: usize
§face_up_len: usize
§visible_len: usize
§spread_len: usize
§selection: Option<StackSelection>
Implementations§
Source§impl StackDetails
impl StackDetails
pub fn face_up_index(&self) -> usize
pub fn visible_index(&self) -> usize
pub fn spread_index(&self) -> usize
pub fn selection_index(&self) -> Option<usize>
pub fn unspread_len(&self) -> usize
pub fn held(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackDetails
impl RefUnwindSafe for StackDetails
impl Send for StackDetails
impl Sync for StackDetails
impl Unpin for StackDetails
impl UnwindSafe for StackDetails
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