pub enum ArgumentKind<'a> {
Borrowed(&'a dyn Any),
Owned(OwnedArgument),
}Expand description
The argument kind returned from Argument::into_inner.
Variants§
Borrowed(&'a dyn Any)
The inner contents are borrowed.
Owned(OwnedArgument)
The inner contents are owned.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ArgumentKind<'a>
impl<'a> !RefUnwindSafe for ArgumentKind<'a>
impl<'a> !Send for ArgumentKind<'a>
impl<'a> !Sync for ArgumentKind<'a>
impl<'a> Unpin for ArgumentKind<'a>
impl<'a> !UnwindSafe for ArgumentKind<'a>
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