pub struct UnwindContextArg<T> {
pub name: Option<&'static str>,
pub value: T,
}
Expand description
A structure representing an argument name and its value.
This type is not intended to be used directly. Consider using macros like
build_unwind_context_data
or unwind_context
instead.
Fields§
§name: Option<&'static str>
Optional argument name.
value: T
Argument value.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for UnwindContextArg<T>
impl<T: Clone> Clone for UnwindContextArg<T>
Source§fn clone(&self) -> UnwindContextArg<T>
fn clone(&self) -> UnwindContextArg<T>
Returns a copy 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<T> Debug for UnwindContextArg<T>where
T: Debug,
impl<T> Debug for UnwindContextArg<T>where
T: Debug,
Source§impl<T> DebugAnsiColored for UnwindContextArg<T>where
T: Debug,
impl<T> DebugAnsiColored for UnwindContextArg<T>where
T: Debug,
Source§fn fmt_colored(
&self,
f: &mut Formatter<'_>,
color_scheme: &'static AnsiColorScheme,
) -> FmtResult
fn fmt_colored( &self, f: &mut Formatter<'_>, color_scheme: &'static AnsiColorScheme, ) -> FmtResult
Formats the value using with colorization and a given
AnsiColorScheme
. Read moreSource§impl<T: Hash> Hash for UnwindContextArg<T>
impl<T: Hash> Hash for UnwindContextArg<T>
Source§impl<T: Ord> Ord for UnwindContextArg<T>
impl<T: Ord> Ord for UnwindContextArg<T>
Source§fn cmp(&self, other: &UnwindContextArg<T>) -> Ordering
fn cmp(&self, other: &UnwindContextArg<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for UnwindContextArg<T>
impl<T: PartialEq> PartialEq for UnwindContextArg<T>
Source§impl<T: PartialOrd> PartialOrd for UnwindContextArg<T>
impl<T: PartialOrd> PartialOrd for UnwindContextArg<T>
impl<T: Eq> Eq for UnwindContextArg<T>
impl<T> StructuralPartialEq for UnwindContextArg<T>
Auto Trait Implementations§
impl<T> Freeze for UnwindContextArg<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnwindContextArg<T>where
T: RefUnwindSafe,
impl<T> Send for UnwindContextArg<T>where
T: Send,
impl<T> Sync for UnwindContextArg<T>where
T: Sync,
impl<T> Unpin for UnwindContextArg<T>where
T: Unpin,
impl<T> UnwindSafe for UnwindContextArg<T>where
T: UnwindSafe,
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