pub enum ReplaceWithPadCharError {
PadCharTooLong,
ReplacementLen(ReplacementTooLong),
}Expand description
Variants§
PadCharTooLong
The given pad is more than one byte long when UTF-8 encoded.
ReplacementLen(ReplacementTooLong)
The replacement is longer than the original.
Trait Implementations§
Source§impl Clone for ReplaceWithPadCharError
impl Clone for ReplaceWithPadCharError
Source§fn clone(&self) -> ReplaceWithPadCharError
fn clone(&self) -> ReplaceWithPadCharError
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 ReplaceWithPadCharError
impl Debug for ReplaceWithPadCharError
Source§impl Display for ReplaceWithPadCharError
impl Display for ReplaceWithPadCharError
Source§impl Error for ReplaceWithPadCharError
Available on crate feature std only.
impl Error for ReplaceWithPadCharError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ReplaceWithPadCharError
impl PartialEq for ReplaceWithPadCharError
impl Copy for ReplaceWithPadCharError
impl Eq for ReplaceWithPadCharError
impl StructuralPartialEq for ReplaceWithPadCharError
Auto Trait Implementations§
impl Freeze for ReplaceWithPadCharError
impl RefUnwindSafe for ReplaceWithPadCharError
impl Send for ReplaceWithPadCharError
impl Sync for ReplaceWithPadCharError
impl Unpin for ReplaceWithPadCharError
impl UnwindSafe for ReplaceWithPadCharError
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