[−][src]Enum twilight_mention::parse::ParseMentionError
Parsing a mention failed due to invalid syntax.
Variants
ID portion of the mention isn't a u64.
Fields of IdNotU64
found: &'a str
String that could not be parsed into a u64.
source: ParseIntError
Reason for the error.
Leading arrow (<
) is not present.
Fields of LeadingArrow
One or more parts of the mention are missing.
For example, an emoji mention - <:name:id>
- has two parts: the name
and the id
, separated by the sigil (:
). If the second sigil denoting
the second part can't be found, then it is missing.
Fields of PartMissing
Mention's sigil is not present.
Users, for example, have the sigil @
.
Fields of Sigil
Trailing arrow (>
) is not present.
Fields of TrailingArrow
Trait Implementations
impl<'a> Clone for ParseMentionError<'a>
[src]
pub fn clone(&self) -> ParseMentionError<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ParseMentionError<'a>
[src]
impl Display for ParseMentionError<'_>
[src]
impl<'a> Eq for ParseMentionError<'a>
[src]
impl Error for ParseMentionError<'_>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<'a> PartialEq<ParseMentionError<'a>> for ParseMentionError<'a>
[src]
pub fn eq(&self, other: &ParseMentionError<'a>) -> bool
[src]
pub fn ne(&self, other: &ParseMentionError<'a>) -> bool
[src]
impl<'a> StructuralEq for ParseMentionError<'a>
[src]
impl<'a> StructuralPartialEq for ParseMentionError<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParseMentionError<'a>
[src]
impl<'a> Send for ParseMentionError<'a>
[src]
impl<'a> Sync for ParseMentionError<'a>
[src]
impl<'a> Unpin for ParseMentionError<'a>
[src]
impl<'a> UnwindSafe for ParseMentionError<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,