pub enum InsertPoint {
Index(usize),
Focused,
AfterFocused,
First,
Last,
}
Expand description
Where a given element should be inserted into a Ring
Variants§
Index(usize)
At the specified index (last if out of bounds)
Focused
In place of the current focused element (pushing focused and later down in the stack)
AfterFocused
After the current focused element (pushing later elements down in the stack)
First
As the first element in the stack
Last
As the last element in the stack
Trait Implementations§
Source§impl Clone for InsertPoint
impl Clone for InsertPoint
Source§fn clone(&self) -> InsertPoint
fn clone(&self) -> InsertPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InsertPoint
impl Debug for InsertPoint
Source§impl Hash for InsertPoint
impl Hash for InsertPoint
Source§impl PartialEq for InsertPoint
impl PartialEq for InsertPoint
impl Copy for InsertPoint
impl Eq for InsertPoint
impl StructuralPartialEq for InsertPoint
Auto Trait Implementations§
impl Freeze for InsertPoint
impl RefUnwindSafe for InsertPoint
impl Send for InsertPoint
impl Sync for InsertPoint
impl Unpin for InsertPoint
impl UnwindSafe for InsertPoint
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