pub enum ResRefError {
TooLong {
len: usize,
max: usize,
},
InvalidChar {
ch: char,
},
}Expand description
Error returned when constructing a ResRef fails validation.
Variants§
TooLong
Input exceeded the maximum allowed resref length.
InvalidChar
Input contained a character outside [A-Za-z0-9_].
Trait Implementations§
Source§impl Clone for ResRefError
impl Clone for ResRefError
Source§fn clone(&self) -> ResRefError
fn clone(&self) -> ResRefError
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 ResRefError
impl Debug for ResRefError
Source§impl Display for ResRefError
impl Display for ResRefError
Source§impl Error for ResRefError
impl Error for ResRefError
1.30.0 · 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 ResRefError
impl PartialEq for ResRefError
impl Eq for ResRefError
impl StructuralPartialEq for ResRefError
Auto Trait Implementations§
impl Freeze for ResRefError
impl RefUnwindSafe for ResRefError
impl Send for ResRefError
impl Sync for ResRefError
impl Unpin for ResRefError
impl UnwindSafe for ResRefError
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