pub enum InsertPosition {
Start,
End,
BeforePattern,
AfterPattern,
}Expand description
Position for inserting statements
Variants§
Start
At the start of the function body
End
At the end of the function body (before return statement if any)
BeforePattern
Before a statement matching the reference pattern
AfterPattern
After a statement matching the reference pattern
Trait Implementations§
Source§impl Clone for InsertPosition
impl Clone for InsertPosition
Source§fn clone(&self) -> InsertPosition
fn clone(&self) -> InsertPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InsertPosition
impl Debug for InsertPosition
Source§impl Default for InsertPosition
impl Default for InsertPosition
Source§fn default() -> InsertPosition
fn default() -> InsertPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for InsertPosition
impl PartialEq for InsertPosition
Source§fn eq(&self, other: &InsertPosition) -> bool
fn eq(&self, other: &InsertPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InsertPosition
impl Eq for InsertPosition
impl StructuralPartialEq for InsertPosition
Auto Trait Implementations§
impl Freeze for InsertPosition
impl RefUnwindSafe for InsertPosition
impl Send for InsertPosition
impl Sync for InsertPosition
impl Unpin for InsertPosition
impl UnsafeUnpin for InsertPosition
impl UnwindSafe for InsertPosition
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