pub struct RubyException { /* private fields */ }Expand description
A simple wrapper around a Ruby exception that provides some convenience methods for testing.
Implementations§
Source§impl RubyException
impl RubyException
Sourcepub fn full_message(&self) -> Option<String>
pub fn full_message(&self) -> Option<String>
Get the full message of the Ruby exception.
Trait Implementations§
Source§impl Clone for RubyException
impl Clone for RubyException
Source§fn clone(&self) -> RubyException
fn clone(&self) -> RubyException
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RubyException
impl Debug for RubyException
Source§impl Display for RubyException
impl Display for RubyException
Source§impl Error for RubyException
impl Error for RubyException
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RubyException
impl PartialEq for RubyException
impl Eq for RubyException
impl StructuralPartialEq for RubyException
Auto Trait Implementations§
impl Freeze for RubyException
impl RefUnwindSafe for RubyException
impl Send for RubyException
impl Sync for RubyException
impl Unpin for RubyException
impl UnwindSafe for RubyException
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)