pub enum SubstitutionError {
InvalidModifier(char),
MissingDelimiter,
MissingPattern,
MissingReplacement,
MissingClosingDelimiter,
}Expand description
Error type for substitution operator parsing failures
Variants§
InvalidModifier(char)
Invalid modifier character found
MissingDelimiter
Missing delimiter after ‘s’
MissingPattern
Pattern is missing or empty (just s/)
MissingReplacement
Replacement section is missing (e.g., s/pattern without replacement part)
MissingClosingDelimiter
Closing delimiter is missing after replacement (e.g., s/pattern/replacement without final /)
Trait Implementations§
Source§impl Clone for SubstitutionError
impl Clone for SubstitutionError
Source§fn clone(&self) -> SubstitutionError
fn clone(&self) -> SubstitutionError
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 SubstitutionError
impl Debug for SubstitutionError
Source§impl PartialEq for SubstitutionError
impl PartialEq for SubstitutionError
impl StructuralPartialEq for SubstitutionError
Auto Trait Implementations§
impl Freeze for SubstitutionError
impl RefUnwindSafe for SubstitutionError
impl Send for SubstitutionError
impl Sync for SubstitutionError
impl Unpin for SubstitutionError
impl UnsafeUnpin for SubstitutionError
impl UnwindSafe for SubstitutionError
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