Struct phper::errors::ExpectTypeError
source · pub struct ExpectTypeError { /* private fields */ }
Expand description
Expect type is not the actual type.
Implementations§
source§impl ExpectTypeError
impl ExpectTypeError
pub fn new(expect_type: TypeInfo, actual_type: TypeInfo) -> ExpectTypeError
Trait Implementations§
source§impl Debug for ExpectTypeError
impl Debug for ExpectTypeError
source§impl Display for ExpectTypeError
impl Display for ExpectTypeError
source§impl Error for ExpectTypeError
impl Error for ExpectTypeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ExpectTypeError> for Error
impl From<ExpectTypeError> for Error
source§fn from(source: ExpectTypeError) -> Self
fn from(source: ExpectTypeError) -> Self
Converts to this type from the input type.
source§impl Throwable for ExpectTypeError
impl Throwable for ExpectTypeError
source§fn get_class(&self) -> &ClassEntry
fn get_class(&self) -> &ClassEntry
Gets the class reference, implemented PHP
Throwable
.source§fn get_message(&self) -> Option<String>
fn get_message(&self) -> Option<String>
Gets the message.
Auto Trait Implementations§
impl RefUnwindSafe for ExpectTypeError
impl Send for ExpectTypeError
impl Sync for ExpectTypeError
impl Unpin for ExpectTypeError
impl UnwindSafe for ExpectTypeError
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