pub enum GenericsError {
DisallowedTemplate,
}Available on crate feature
generics only.Expand description
Generics error (experimental)
Variants§
DisallowedTemplate
Trait Implementations§
Source§impl Clone for GenericsError
impl Clone for GenericsError
Source§fn clone(&self) -> GenericsError
fn clone(&self) -> GenericsError
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 GenericsError
impl Debug for GenericsError
Source§impl Display for GenericsError
impl Display for GenericsError
Source§impl Error for GenericsError
impl Error for GenericsError
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 From<GenericsError> for Diagnostic<Error>
impl From<GenericsError> for Diagnostic<Error>
Source§fn from(error: GenericsError) -> Self
fn from(error: GenericsError) -> Self
Converts to this type from the input type.
Source§impl From<GenericsError> for Error
impl From<GenericsError> for Error
Source§fn from(source: GenericsError) -> Self
fn from(source: GenericsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenericsError
impl RefUnwindSafe for GenericsError
impl Send for GenericsError
impl Sync for GenericsError
impl Unpin for GenericsError
impl UnwindSafe for GenericsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more