pub enum EditInstruction<T> {
Insertion(T),
Deletion(T),
Identity(T),
GenericIdentity(u32),
InsertionOptions(Vec<T>),
DeletionOptions(Vec<T>),
IdentityOptions(Vec<T>),
}
Variants§
Insertion(T)
An insertion
Deletion(T)
A deletion
Identity(T)
An identity check
GenericIdentity(u32)
An identity check for a specific length (a generic abstraction)
InsertionOptions(Vec<T>)
A disjunction over multiple possible insertions
DeletionOptions(Vec<T>)
A disjunction over multiple possible deletions
IdentityOptions(Vec<T>)
A disjunction over multiple possible identities
Implementations§
Source§impl EditInstruction<&str>
impl EditInstruction<&str>
Sourcepub fn to_owned(&self) -> EditInstruction<String>
pub fn to_owned(&self) -> EditInstruction<String>
This is technically different from using the ToOwned trait because I couldn’t get the Borrow<> counterpart to work out.
Source§impl EditInstruction<String>
impl EditInstruction<String>
pub fn as_ref(&self) -> EditInstruction<&str>
Trait Implementations§
Source§impl<T: Clone> Clone for EditInstruction<T>
impl<T: Clone> Clone for EditInstruction<T>
Source§fn clone(&self) -> EditInstruction<T>
fn clone(&self) -> EditInstruction<T>
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<T: Debug> Debug for EditInstruction<T>
impl<T: Debug> Debug for EditInstruction<T>
Source§impl<T: Display> Display for EditInstruction<T>
impl<T: Display> Display for EditInstruction<T>
Source§impl FromStr for EditInstruction<String>
impl FromStr for EditInstruction<String>
Source§impl<T: PartialEq> PartialEq for EditInstruction<T>
impl<T: PartialEq> PartialEq for EditInstruction<T>
impl<T> StructuralPartialEq for EditInstruction<T>
Auto Trait Implementations§
impl<T> Freeze for EditInstruction<T>where
T: Freeze,
impl<T> RefUnwindSafe for EditInstruction<T>where
T: RefUnwindSafe,
impl<T> Send for EditInstruction<T>where
T: Send,
impl<T> Sync for EditInstruction<T>where
T: Sync,
impl<T> Unpin for EditInstruction<T>where
T: Unpin,
impl<T> UnwindSafe for EditInstruction<T>where
T: UnwindSafe,
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