pub enum AstroTextError {
Empty,
ContainsWhitespace,
InvalidCharacter {
character: char,
},
UnknownLabel,
}Expand description
Error returned when Astro metadata text is invalid.
Variants§
Trait Implementations§
Source§impl Clone for AstroTextError
impl Clone for AstroTextError
Source§fn clone(&self) -> AstroTextError
fn clone(&self) -> AstroTextError
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 AstroTextError
impl Debug for AstroTextError
Source§impl Display for AstroTextError
impl Display for AstroTextError
Source§impl Error for AstroTextError
impl Error for AstroTextError
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 AstroTextError
impl PartialEq for AstroTextError
Source§fn eq(&self, other: &AstroTextError) -> bool
fn eq(&self, other: &AstroTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AstroTextError
impl Eq for AstroTextError
impl StructuralPartialEq for AstroTextError
Auto Trait Implementations§
impl Freeze for AstroTextError
impl RefUnwindSafe for AstroTextError
impl Send for AstroTextError
impl Sync for AstroTextError
impl Unpin for AstroTextError
impl UnsafeUnpin for AstroTextError
impl UnwindSafe for AstroTextError
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