[−][src]Struct spinoso_math::NotImplementedError
Error that indicates a Math
module function is not implemented.
Some math functions are not available in the Rust core library and require this crate to be built with extra compile-time features to enable additional dependencies.
Not implemented errors have an associated message.
This error corresponds to the Ruby NotImplementedError
Exception class.
Examples
let err = NotImplementedError::new(); assert_eq!(err.message(), "NotImplementedError"); let err = NotImplementedError::with_message( "Artichoke was not built with Math::erf support" ); assert_eq!(err.message(), "Artichoke was not built with Math::erf support");
Implementations
impl NotImplementedError
[src]
#[must_use]pub const fn new() -> Self
[src]
Construct a new, default not implemented error.
Examples
const ERR: NotImplementedError = NotImplementedError::new(); assert_eq!(ERR.message(), "NotImplementedError");
#[must_use]pub const fn with_message(message: &'static str) -> Self
[src]
Construct a new, not implemented error with a message.
Examples
const ERR: NotImplementedError = NotImplementedError::with_message( "Artichoke was not built with Math::erf support" ); assert_eq!(ERR.message(), "Artichoke was not built with Math::erf support");
#[must_use]pub const fn message(self) -> &'static str
[src]
Retrieve the exception message associated with this not implemented error.
Examples
let err = NotImplementedError::new(); assert_eq!(err.message(), "NotImplementedError"); let err = NotImplementedError::with_message( "Artichoke was not built with Math::erf support" ); assert_eq!(err.message(), "Artichoke was not built with Math::erf support");
Trait Implementations
impl Clone for NotImplementedError
[src]
fn clone(&self) -> NotImplementedError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NotImplementedError
[src]
impl Debug for NotImplementedError
[src]
impl Default for NotImplementedError
[src]
fn default() -> NotImplementedError
[src]
impl Display for NotImplementedError
[src]
impl Eq for NotImplementedError
[src]
impl Error for NotImplementedError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[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 From<&'static str> for NotImplementedError
[src]
impl From<NotImplementedError> for Error
[src]
fn from(err: NotImplementedError) -> Self
[src]
impl Hash for NotImplementedError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for NotImplementedError
[src]
fn cmp(&self, other: &NotImplementedError) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<NotImplementedError> for NotImplementedError
[src]
fn eq(&self, other: &NotImplementedError) -> bool
[src]
fn ne(&self, other: &NotImplementedError) -> bool
[src]
impl PartialOrd<NotImplementedError> for NotImplementedError
[src]
fn partial_cmp(&self, other: &NotImplementedError) -> Option<Ordering>
[src]
fn lt(&self, other: &NotImplementedError) -> bool
[src]
fn le(&self, other: &NotImplementedError) -> bool
[src]
fn gt(&self, other: &NotImplementedError) -> bool
[src]
fn ge(&self, other: &NotImplementedError) -> bool
[src]
impl StructuralEq for NotImplementedError
[src]
impl StructuralPartialEq for NotImplementedError
[src]
Auto Trait Implementations
impl RefUnwindSafe for NotImplementedError
[src]
impl Send for NotImplementedError
[src]
impl Sync for NotImplementedError
[src]
impl Unpin for NotImplementedError
[src]
impl UnwindSafe for NotImplementedError
[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, 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>,